diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-11-01 16:07:37 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2023-11-01 16:07:37 -0400 |
commit | c20a1b6e2d6a0fd165e833b536d0b6b7b5d2d670 (patch) | |
tree | 9567c067132ccdf97da7ccf0e24607dbee4a05a6 /lua/ben/plugins/lsp/mason.lua | |
parent | 6707e9c579b0321e833e2841fa5d5e049674bfb0 (diff) |
Use fern instead of netrw
Diffstat (limited to 'lua/ben/plugins/lsp/mason.lua')
-rw-r--r-- | lua/ben/plugins/lsp/mason.lua | 67 |
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, } |