diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-10-30 15:48:49 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2023-10-30 15:48:49 -0400 |
commit | 6707e9c579b0321e833e2841fa5d5e049674bfb0 (patch) | |
tree | 18f1c733dc561813f2e166e55b42faa092335f4d /lua/ben/plugins/lsp/mason.lua | |
parent | cf473c39984ff94b574d9ebf25ad5ff6e63868e0 (diff) |
Moving away from null-ls
Diffstat (limited to 'lua/ben/plugins/lsp/mason.lua')
-rw-r--r-- | lua/ben/plugins/lsp/mason.lua | 98 |
1 files changed, 37 insertions, 61 deletions
diff --git a/lua/ben/plugins/lsp/mason.lua b/lua/ben/plugins/lsp/mason.lua index a1af193..cafdb3b 100644 --- a/lua/ben/plugins/lsp/mason.lua +++ b/lua/ben/plugins/lsp/mason.lua @@ -1,65 +1,41 @@ return { - "williamboman/mason.nvim", - event = "VeryLazy", - dependencies = { - "williamboman/mason-lspconfig.nvim", - "jayp0521/mason-null-ls.nvim", - }, - config = function() - -- import mason - local mason = require("mason") + "williamboman/mason.nvim", + dependencies = { + "williamboman/mason-lspconfig.nvim", - -- import mason-lspconfig - local mason_lspconfig = require("mason-lspconfig") + }, + config = function() + --import mason + local mason = require("mason") + -- import mason-lspconfig + local mason_lspconfig = require("mason-lspconfig") - -- import mason-null-ls - local mason_null_ls = require("mason-null-ls") - - -- 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 = { - "tsserver", - "html", - "cssls", - "tailwindcss", - "svelte", - "gopls", - "texlab", - "lua_ls", - "graphql", - "emmet_ls", - "prismals", - "pyright", - "dockerls", - "docker_compose_language_service", - "clangd", - "cmake", - "bashls", - }, - -- auto-install configured servers (with lspconfig) - automatic_installation = true, -- not the same as ensure_installed - }) - - mason_null_ls.setup({ - -- list of formatters & linters for mason to install - ensure_installed = { - "prettier", -- ts/js formatter - "stylua", -- lua formatter - "eslint_d", -- ts/js linter - }, - -- auto-install configured servers (with lspconfig) - automatic_installation = true, - }) - end, + -- 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", + "bibtex-tidy", + "goimports", + "gci", + "golines", + "shfmt", + "latexindent", + "sql_formatter", + "isort", "black", + "yamlfix", + }, + -- auto-install configured servers (with lspconfig) + automatic_installation = true, -- not the same as ensure_installed + }) + end, } |