Add nvim-lint plugin
And configure Dockerfile lint
This commit is contained in:
parent
293aed1020
commit
98fc6a1513
2 changed files with 15 additions and 0 deletions
|
@ -27,6 +27,7 @@ in
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
# LSP Servers
|
# LSP Servers
|
||||||
clang-tools
|
clang-tools
|
||||||
|
hadolint
|
||||||
lua-language-server
|
lua-language-server
|
||||||
marksman
|
marksman
|
||||||
nil
|
nil
|
||||||
|
@ -96,6 +97,11 @@ in
|
||||||
config = (builtins.readFile ./files/neotree.lua);
|
config = (builtins.readFile ./files/neotree.lua);
|
||||||
}
|
}
|
||||||
nui-nvim
|
nui-nvim
|
||||||
|
{
|
||||||
|
plugin = nvim-lint;
|
||||||
|
type = "lua";
|
||||||
|
config = ( builtins.readFile ./files/nvim-lint.lua);
|
||||||
|
}
|
||||||
plenary-nvim
|
plenary-nvim
|
||||||
{
|
{
|
||||||
plugin = (nvim-treesitter.withPlugins (p: [
|
plugin = (nvim-treesitter.withPlugins (p: [
|
||||||
|
|
9
modules/home-manager/cli/neovim/files/nvim-lint.lua
Normal file
9
modules/home-manager/cli/neovim/files/nvim-lint.lua
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
require('lint').linters_by_ft = {
|
||||||
|
dockerfile = {'hadolint',}
|
||||||
|
}
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||||
|
callback = function()
|
||||||
|
require("lint").try_lint()
|
||||||
|
end,
|
||||||
|
})
|
Loading…
Add table
Add a link
Reference in a new issue