Files
neovim-config/lua/config/lsp.lua
T

34 lines
585 B
Lua

vim.lsp.config["lua"] = {
cmd = { "lua-language-server" },
filetypes = { "lua" },
root_markers = { { ".luarc.json", ".luarc.jsonc" }, ".git" },
settings = {
Lua = {
runtime = {
version = "LuaJIT",
},
},
},
}
vim.lsp.enable("lua")
vim.lsp.config["python"] = {
cmd = { "pyright-langserver", "--stdio" },
filetypes = { "python" },
root_markers = {
"pyproject.toml",
".git",
},
settings = {
python = {
analysis = {
autoSearchPaths = true,
diagnosticMode = "workspace",
useLibraryCodeForTypes = true,
},
},
},
}
vim.lsp.enable("python")