aboutsummaryrefslogtreecommitdiffstats
path: root/after/plugin/mason.lua
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-01-08 09:58:56 +0100
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-01-08 09:58:56 +0100
commitf7bcac5ee5db56081981bb946a66d3fc34807988 (patch)
tree2cfc8d60054508d5297cd392d6df1e540057bcc7 /after/plugin/mason.lua
parentfb9196e7766f53115009c081f0b4308ca6c081b4 (diff)
downloadnvim-conf-f7bcac5ee5db56081981bb946a66d3fc34807988.tar.gz
nvim-conf-f7bcac5ee5db56081981bb946a66d3fc34807988.zip
feat: refactor lsp & cmp to lua folder from after
Diffstat (limited to 'after/plugin/mason.lua')
-rw-r--r--after/plugin/mason.lua62
1 files changed, 0 insertions, 62 deletions
diff --git a/after/plugin/mason.lua b/after/plugin/mason.lua
deleted file mode 100644
index f3655c2..0000000
--- a/after/plugin/mason.lua
+++ /dev/null
@@ -1,62 +0,0 @@
-local ok, mason = pcall(require, "mason")
-if not ok then
- return
-end
-
-local mason_lspconfig = require("mason-lspconfig")
-
-mason.setup({
- ui = {
- icons = {
- package_installed = "โœ“",
- package_pending = "โžœ",
- package_uninstalled = "โœ—",
- },
- },
-})
-
-mason_lspconfig.setup({
- automatic_installation = false,
-})
-
-require('mason-tool-installer').setup {
-
- -- a list of all tools you want to ensure are installed upon
- -- start; they should be the names Mason uses for each tool
- ensure_installed = {
- "blade-formatter",
- "dockerfile-language-server",
- "emmet-ls",
- "go-debug-adapter",
- "golangci-lint",
- "gopls",
- "html-lsp",
- "json-lsp",
- "lua-language-server",
- "php-debug-adapter",
- "rust-analyzer",
- "stylua",
- "typescript-language-server",
- "vue-language-server",
- "phpactor",
- "sql-formatter",
- },
-
- -- if set to true this will check each tool for updates. If updates
- -- are available the tool will be updated. This setting does not
- -- affect :MasonToolsUpdate or :MasonToolsInstall.
- -- Default: false
- auto_update = false,
-
- -- automatically install / update on startup. If set to false nothing
- -- will happen on startup. You can use :MasonToolsInstall or
- -- :MasonToolsUpdate to install tools and check for updates.
- -- Default: true
- run_on_start = true,
-
- -- set a delay (in ms) before the installation starts. This is only
- -- effective if run_on_start is set to true.
- -- e.g.: 5000 = 5 second delay, 10000 = 10 second delay, etc...
- -- Default: 0
- start_delay = 3000, -- 3 second delay
-}