update lsp
This commit is contained in:
@@ -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 },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
indent_type = "Spaces",
|
indent_type = "Spaces",
|
||||||
indent_width = 4,
|
indent_width = 2,
|
||||||
column_width = 97,
|
column_width = 97,
|
||||||
|
|||||||
Reference in New Issue
Block a user