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 = {
settings = { "basedpyright",
python = { "flake8",
analysis = { "json-lsp",
inlayHints = { "lua-language-server",
variableTypes = false, "marksman",
functionReturnTypes = false, "ruff",
}, "shfmt",
"sylua"
}, },
}, })
},
on_attach = function(client, bufnr) local lspconfig = require("lspconfig")
if client.server_capabilities.inlayHintProvider then
vim.lsp.buf.inlay_hint(bufnr, false) -- Disable inlay hints for basedpyright
end lspconfig.basedpyright.setup({
end, settings = {
python = {
analysis = {
inlayHints = {
enabled = false
}
}
}
} }
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,