adds nvim-lint plugin with necessary packages to dev machines
This commit is contained in:
parent
e4ee753899
commit
23619e3b6b
4 changed files with 26 additions and 0 deletions
|
|
@ -44,8 +44,10 @@
|
|||
vscode-langservers-extracted
|
||||
lua-language-server
|
||||
prettierd
|
||||
eslint_d
|
||||
atuin
|
||||
nil
|
||||
shellcheck
|
||||
];
|
||||
|
||||
# Homebrew
|
||||
|
|
|
|||
|
|
@ -42,9 +42,11 @@
|
|||
vscode-langservers-extracted
|
||||
lua-language-server
|
||||
prettierd
|
||||
eslint_d
|
||||
atuin
|
||||
nil
|
||||
nurl
|
||||
shellcheck
|
||||
];
|
||||
|
||||
# Homebrew
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
"lualine.nvim": { "branch": "master", "commit": "15884cee63a8c205334ab13ab1c891cd4d27101a" },
|
||||
"mini.icons": { "branch": "main", "commit": "397ed3807e96b59709ef3292f0a3e253d5c1dc0a" },
|
||||
"mini.pairs": { "branch": "main", "commit": "69864a2efb36c030877421634487fd90db1e4298" },
|
||||
"nvim-lint": { "branch": "master", "commit": "b47cbb249351873e3a571751c3fb66ed6369852f" },
|
||||
"nvim-surround": { "branch": "main", "commit": "0e62500b98f4513feaaf7425c135472457ea5b7d" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "28d480e0624b259095e56f353ec911f9f2a0f404" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "2c2b4eafce6cdd0cb165036faa17396eff18f847" },
|
||||
|
|
|
|||
21
modules/nvim/config/lua/plugins/nvim-lint.lua
Normal file
21
modules/nvim/config/lua/plugins/nvim-lint.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
return {
|
||||
"mfussenegger/nvim-lint",
|
||||
config = function()
|
||||
local lint = require("lint")
|
||||
|
||||
lint.linters_by_ft = {
|
||||
javascript = { "eslint_d" },
|
||||
javascriptreact = { "eslint_d" },
|
||||
typescript = { "eslint_d" },
|
||||
typescriptreact = { "eslint_d" },
|
||||
sh = { "shellcheck" },
|
||||
nix = { "nix" },
|
||||
}
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||
callback = function()
|
||||
require("lint").try_lint()
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue