summaryrefslogtreecommitdiff
path: root/lua/plugins
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-06-06 05:39:05 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-06-06 05:39:05 -0600
commit3a85b9f495513b9ae9503aae16f04e1ed94662d2 (patch)
tree38d5dc99617e9301e16ab4a3779ca19f30fcb9cd /lua/plugins
parentdbafb06b8c2281913d295e01bf09db4e3554a4c8 (diff)
fix mason wasn't getting setup, now it autoinstalls and fidget also works
Diffstat (limited to 'lua/plugins')
-rw-r--r--lua/plugins/lsp.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua
index 44371e0..88f1895 100644
--- a/lua/plugins/lsp.lua
+++ b/lua/plugins/lsp.lua
@@ -1,6 +1,7 @@
local servers = {
gopls = {},
- jedi_language_server = {},
+ -- jedi_language_server = {},
+ pyright = {},
lua_ls = {
Lua = {
workspace = { checkThirdParty = false },
@@ -27,7 +28,9 @@ return {
local lspconfig = require('lspconfig')
local mason_lspconfig = require('mason-lspconfig')
- mason_lspconfig.ensure_installed = vim.tbl_keys(servers)
+ mason_lspconfig.setup({
+ ensure_installed = vim.tbl_keys(servers)
+ })
local on_attach = function(_, bufnr)
local nmap = function(keys, func, desc)
@@ -65,7 +68,7 @@ return {
end, { desc = 'Format current buffer with LSP' })
end
- mason_lspconfig.setup_handlers {
+ mason_lspconfig.setup_handlers({
function(server_name)
lspconfig[server_name].setup {
capabilities = capabilities,
@@ -73,6 +76,6 @@ return {
settings = servers[server_name],
}
end,
- }
+ })
end,
}