summaryrefslogtreecommitdiff
path: root/lua/ben/plugins/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'lua/ben/plugins/lsp')
-rw-r--r--lua/ben/plugins/lsp/mason.lua67
1 files changed, 49 insertions, 18 deletions
diff --git a/lua/ben/plugins/lsp/mason.lua b/lua/ben/plugins/lsp/mason.lua
index cafdb3b..121509d 100644
--- a/lua/ben/plugins/lsp/mason.lua
+++ b/lua/ben/plugins/lsp/mason.lua
@@ -2,7 +2,7 @@ return {
"williamboman/mason.nvim",
dependencies = {
"williamboman/mason-lspconfig.nvim",
-
+ "WhoIsSethDaniel/mason-tool-installer.nvim",
},
config = function()
--import mason
@@ -10,32 +10,63 @@ return {
-- import mason-lspconfig
local mason_lspconfig = require("mason-lspconfig")
+ local mason_tool_installer = require("mason-tool-installer")
+
-- enable mason and configure icons
mason.setup({
ui = {
- icons = {
- package_installed = "",
- package_pending = "",
- package_uninstalled = ""
- },
- },
- })
- mason_lspconfig.setup({
- -- list of servers for mason to install
- ensure_installed = {
- "prettier",
+ icons = {
+ package_installed = "",
+ package_pending = "",
+ package_uninstalled = "",
+ },
+ },
+ })
+ mason_lspconfig.setup({
+ -- list of servers for mason to install
+ ensure_installed = {
+ "bashls",
+ "cssls",
+ "diagnosticls",
+ "dockerls",
+ "docker_compose_language_service",
+ "gopls",
+ "lua_ls",
+ "texlab",
+ "zk",
+ "pyright",
+ "r_language_server",
+ "sqls",
+ },
+ -- auto-install configured servers (with lspconfig)
+ automatic_installation = true, -- not the same as ensure_installed
+ })
+
+ mason_tool_installer.setup({
+ ensure_installed = {
+ "mutt-language-server",
+ "emmet-ls",
+ -- Linters:
+ "prettier",
"bibtex-tidy",
"goimports",
"gci",
"golines",
"shfmt",
"latexindent",
- "sql_formatter",
- "isort", "black",
+ "sql-formatter",
+ "isort",
+ "black",
"yamlfix",
- },
- -- auto-install configured servers (with lspconfig)
- automatic_installation = true, -- not the same as ensure_installed
- })
+ "stylua",
+ -- Formatters:
+ "stylelint",
+ "markdownlint",
+ "pylint",
+ "golangci-lint",
+ "shellcheck",
+ },
+ })
+
end,
}