Files
lazy_config/lua/plugins/lsp.lua
Daveanand Mannie 5764bd1392 update lsp
2024-08-25 18:42:56 -04:00

41 lines
865 B
Lua

return {
"williamboman/mason-lspconfig.nvim",
config = function()
require("mason-lspconfig").setup({
-- Configure which LSP servers to automatically install
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 = {
python = {
analysis = {
inlayHints = {
enabled = false
}
}
}
}
})
end,
--- idk but this fixed it lol
{
"neovim/nvim-lspconfig",
opts = {
inlay_hints = { enabled = false },
},
}
}