summaryrefslogtreecommitdiff
path: root/lua/ben/plugins/lsp/mason.lua
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-01-21 04:04:42 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-01-21 04:04:42 -0500
commit796db1e83d41d25a277c46c968a168702c1f3eb8 (patch)
tree9dcdc336cdf71c88393cd7393f7c14e5507693db /lua/ben/plugins/lsp/mason.lua
parent17c22a2ec66af3c73834c035659eb2bc687f58c0 (diff)
New lsp config start
Diffstat (limited to 'lua/ben/plugins/lsp/mason.lua')
-rw-r--r--lua/ben/plugins/lsp/mason.lua72
1 files changed, 0 insertions, 72 deletions
diff --git a/lua/ben/plugins/lsp/mason.lua b/lua/ben/plugins/lsp/mason.lua
deleted file mode 100644
index 121509d..0000000
--- a/lua/ben/plugins/lsp/mason.lua
+++ /dev/null
@@ -1,72 +0,0 @@
-return {
- "williamboman/mason.nvim",
- dependencies = {
- "williamboman/mason-lspconfig.nvim",
- "WhoIsSethDaniel/mason-tool-installer.nvim",
- },
- config = function()
- --import mason
- local mason = require("mason")
- -- 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 = {
- "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",
- "yamlfix",
- "stylua",
- -- Formatters:
- "stylelint",
- "markdownlint",
- "pylint",
- "golangci-lint",
- "shellcheck",
- },
- })
-
- end,
-}