My Nix Configuration
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

[neovim] update nvim-lint config

dish 8870ed83 b0825379

+1 -33
+1 -33
neovim/plugins/nvim-lint.nix
··· 7 7 diagnostics.config = { 8 8 virtual_text = true; 9 9 }; 10 - diagnostics.nvim-lint.enable = lib.mkForce false; 11 - lazy.plugins.nvim-lint = { 12 - package = "nvim-lint"; 13 - event = [ "BufReadPre" ]; 14 - after = '' 15 - require("lint").linters_by_ft = ${lib.nvim.lua.toLuaObject cfg.linters_by_ft} 16 - 17 - local linters = require("lint").linters 18 - local nvf_linters = ${lib.nvim.lua.toLuaObject cfg.linters} 19 - for linter, config in pairs(nvf_linters) do 20 - if linters[linter] == nil then 21 - linters[linter] = config 22 - else 23 - for key, val in pairs(config) do 24 - linters[linter][key] = val 25 - end 26 - end 27 - end 28 - 29 - nvf_lint = ${lib.nvim.lua.toLuaObject cfg.lint_function} 30 - ''; 31 - }; 32 - augroups = [ { name = "nvf_nvim_lint"; } ]; 33 - autocmds = [ 34 - { 35 - event = [ "BufWritePost" ]; 36 - callback = lib.generators.mkLuaInline '' 37 - function(args) 38 - nvf_lint(args.buf) 39 - end 40 - ''; 41 - } 42 - ]; 10 + diagnostics.nvim-lint.enable = true; 43 11 }; 44 12 }