Files
dotfiles/dot_config/nvim/lua/plugins/lsp.lua

45 lines
849 B
Lua

return {
"neovim/nvim-lspconfig",
config = function()
vim.lsp.enable({
"lua_ls",
"basedpyright",
"gopls",
"html",
"yamlls",
"svelte",
"clangd",
"ansiblels",
"vtsls",
"zls",
"glsl_analyzer",
"rust_analyzer",
"templ",
"tailwindcss",
"nil_ls",
"gleam",
"ty"
})
-- Testing basedpyright atm, change to jedi idk
vim.lsp.config("basedpyright", {
settings = {
python = {
pythonPath = vim.fn.exepath("python"),
},
['basedpyright'] = {
analysis = {
typeCheckingMode = "basic",
inlayHints = {
variableTypes = true,
genericTypes = true,
},
autoFormatStrings = true,
}
}
}
})
end
}