Something went wrong. Try again.
forked from nix-community/nixvim
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ example = { filetype = { extension = { foo = "fooscript"; bar.__raw = '' function(path, bufnr) if some_condition() then return 'barscript', function(bufnr) -- Set a buffer variable vim.b[bufnr].barscript_version = 2 end end return 'bar' end ''; }; filename = { ".foorc" = "toml"; "/etc/foo/config" = "toml"; }; pattern = { ".*/etc/foo.*" = "fooscript"; ".*/etc/foo.*%.conf" = [ "dosini" { priority = 10; } ]; "\${XDG_CONFIG_HOME}/foo/git" = "git"; "README.(a+)$".__raw = '' function(path, bufnr, ext) if ext == 'md' then return 'markdown' elseif ext == 'rst' then return 'rst' end end ''; }; }; };
default-empty = { config, ... }: { files.test = { };
assertions = [ { assertion = builtins.match ".*vim\\.filetype\\..*" config.content == null; message = "No vim.filetype definitions should be present in init.lua by default."; } { assertion = builtins.match ".*vim\\.filetype\\..*" config.files.test.content == null; message = "No vim.filetype definitions should be present in files submodules by default."; } ]; };}