Skip to content

Commit

Permalink
Adding new linters and formatters
Browse files Browse the repository at this point in the history
The new line in formatting.lua specifically enables formatting of shell
scripts
  • Loading branch information
Blackjacx committed Dec 11, 2023
1 parent f909b16 commit a160b81
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions bootstrap/config_dirs/nvim/lua/user/plugins/formatting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ return {
lua = { "stylua" },
python = { "isort", "black" },
swift = { "swiftformat" },
sh = { "beautysh" },
},
format_on_save = {
lsp_fallback = true,
Expand Down
5 changes: 0 additions & 5 deletions bootstrap/config_dirs/nvim/lua/user/plugins/lsp/lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,6 @@ return {
on_attach = on_attach,
})

lspconfig["pkgbuild_language_server"].setup({
capabilities = capabilities,
on_attach = on_attach,
})

-- configure lua server (with special settings)
lspconfig["lua_ls"].setup({
capabilities = capabilities,
Expand Down
3 changes: 2 additions & 1 deletion bootstrap/config_dirs/nvim/lua/user/plugins/lsp/mason.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ return {
"stylua", -- lua formatter
"isort", -- python formatter
"black", -- python formatter
"shfmt", -- shell formatter
"beautysh", -- shell formatter
"pylint", -- python linter
"eslint_d", -- js linter
"shellcheck", -- bash linter
"commitlint", -- commit linter
"cspell", -- spell checker for code
"jsonlint", -- json linter
-- "quick-lint-ls", -- blazing fast alternative to eslint
},
})
end,
Expand Down
8 changes: 8 additions & 0 deletions bootstrap/config_dirs/nvim/lua/user/plugins/lsp/none-ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ return {
"prettier", -- prettier formatter
"stylua", -- lua formatter
"black", -- python formatter
"shfmt", --shell formatter
"beautysh", --shell formatter
"pylint", -- python linter
"eslint_d", -- js linter
"shellcheck", -- bash linter
"commitlint", -- commit linter
"cspell", -- spell checker for code
"jsonlint", -- json linter
},
})

Expand All @@ -43,6 +49,8 @@ return {
formatting.stylua, -- lua formatter
formatting.isort,
formatting.black,
formatting.shfmt,
formatting.beautysh,
diagnostics.pylint,
diagnostics.eslint_d.with({ -- js/ts linter
condition = function(utils)
Expand Down

0 comments on commit a160b81

Please sign in to comment.