1 return { |
1 return { |
2 "neovim/nvim-lspconfig", |
2 "neovim/nvim-lspconfig", |
3 {"williamboman/mason.nvim", config = true}, |
3 { "williamboman/mason.nvim", config = true }, |
4 {"j-hui/fidget.nvim", config = true}, |
4 { "j-hui/fidget.nvim", config = true }, |
5 |
5 |
6 { |
6 { |
7 "williamboman/mason-lspconfig.nvim", |
7 "williamboman/mason-lspconfig.nvim", |
8 config = function(plugin, opts) |
8 config = function(plugin, opts) |
9 require("mason-lspconfig").setup() |
9 require("mason-lspconfig").setup() |
10 require("mason-lspconfig").setup_handlers({ |
10 require("mason-lspconfig").setup_handlers({ |
11 function(server) |
11 function(server) |
12 require("lspconfig")[server].setup({ |
12 require("lspconfig")[server].setup({ |
13 capabilities = require('cmp_nvim_lsp').default_capabilities() |
13 capabilities = require("cmp_nvim_lsp").default_capabilities(), |
14 }) |
14 }) |
15 end, |
15 end, |
16 gopls = function () |
16 gopls = function() |
17 require("lspconfig").gopls.setup({ |
17 require("lspconfig").gopls.setup({ |
18 capabilities = require('cmp_nvim_lsp').default_capabilities(), |
18 capabilities = require("cmp_nvim_lsp").default_capabilities(), |
19 settings = { gopls = { gofumpt = true } } |
19 settings = { gopls = { gofumpt = true } }, |
20 }) |
20 }) |
21 end, |
21 end, |
22 solargraph = function () |
22 solargraph = function() |
23 require("lspconfig").solargraph.setup({ |
23 require("lspconfig").solargraph.setup({ |
24 capabilities = require('cmp_nvim_lsp').default_capabilities(), |
24 capabilities = require("cmp_nvim_lsp").default_capabilities(), |
25 init_options = { formatting = false } |
25 init_options = { formatting = false }, |
26 }) |
26 }) |
27 end, |
27 end, |
28 }) |
28 }) |
29 end, |
29 end, |
30 }, |
30 }, |