update lsp

This commit is contained in:
Daveanand Mannie
2024-08-25 18:42:56 -04:00
parent caf6878b2c
commit 5764bd1392
2 changed files with 36 additions and 21 deletions

View File

@@ -1,25 +1,40 @@
return { return {
{ "williamboman/mason-lspconfig.nvim",
"neovim/nvim-lspconfig", config = function()
opts = function() require("mason-lspconfig").setup({
local lspconfig = require('lspconfig') -- Configure which LSP servers to automatically install
lspconfig.basedpyright.setup { ensure_installed = {
"basedpyright",
"flake8",
"json-lsp",
"lua-language-server",
"marksman",
"ruff",
"shfmt",
"sylua"
},
})
local lspconfig = require("lspconfig")
-- Disable inlay hints for basedpyright
lspconfig.basedpyright.setup({
settings = { settings = {
python = { python = {
analysis = { analysis = {
inlayHints = { inlayHints = {
variableTypes = false, enabled = false
functionReturnTypes = false,
},
},
},
},
on_attach = function(client, bufnr)
if client.server_capabilities.inlayHintProvider then
vim.lsp.buf.inlay_hint(bufnr, false)
end
end,
} }
}
}
}
})
end, end,
--- idk but this fixed it lol
{
"neovim/nvim-lspconfig",
opts = {
inlay_hints = { enabled = false },
}, },
} }
}

View File

@@ -1,3 +1,3 @@
indent_type = "Spaces", indent_type = "Spaces",
indent_width = 4, indent_width = 2,
column_width = 97, column_width = 97,