about summary refs log tree commit diff stats
path: root/hm/soispha/conf/nvim/plgs/nvim-lint/lua/nvim-lint.lua
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-02-20 17:21:42 +0100
committerSoispha <soispha@vhack.eu>2024-02-20 17:21:42 +0100
commitf2bdeaed0bcf97a880fe36cfc8a050d1643120b8 (patch)
treeba4fe9c3ddf076529701c0e776ffef2104ac23d5 /hm/soispha/conf/nvim/plgs/nvim-lint/lua/nvim-lint.lua
parentrefactor(treewide): Add a `.sh` extension to shell scripts (diff)
downloadnixos-config-f2bdeaed0bcf97a880fe36cfc8a050d1643120b8.zip
refactor(treewide): Reformat all files with treefmt
This includes getting all shellscripts to pass shellcheck. To accomplish
this, some old scripts were removed
Diffstat (limited to 'hm/soispha/conf/nvim/plgs/nvim-lint/lua/nvim-lint.lua')
-rw-r--r--hm/soispha/conf/nvim/plgs/nvim-lint/lua/nvim-lint.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/hm/soispha/conf/nvim/plgs/nvim-lint/lua/nvim-lint.lua b/hm/soispha/conf/nvim/plgs/nvim-lint/lua/nvim-lint.lua
index c6cd1420..4ed49f7b 100644
--- a/hm/soispha/conf/nvim/plgs/nvim-lint/lua/nvim-lint.lua
+++ b/hm/soispha/conf/nvim/plgs/nvim-lint/lua/nvim-lint.lua
@@ -1,6 +1,6 @@
 require("lint").linters_by_ft = {
   -- text
-  markdown = {};
+  markdown = {},
   -- tex = {'chktex'}, -- maybe add some text linters ?
 
   -- shell (already covered by the bash language sever)
@@ -9,12 +9,12 @@ require("lint").linters_by_ft = {
   --  zsh = { "shellcheck"; };
   --  dash = { "shellcheck"; };
 
-  yaml = { "yamllint"; };
-  nix = { "nix"; "statix"; };
+  yaml = { "yamllint" },
+  nix = { "nix", "statix" },
 }
 
-vim.api.nvim_create_autocmd({ "BufEnter"; "BufWritePost"; }, {
+vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost" }, {
   callback = function()
     require("lint").try_lint()
-  end;
+  end,
 })