misc settings

This commit is contained in:
Johannes Knopp
2025-01-13 22:19:32 +01:00
parent 862c6964bb
commit 5048949d2a
6 changed files with 65 additions and 28 deletions

View File

@ -81,36 +81,43 @@ return {
['ts_ls'] = function()
lspconfig['ts_ls'].setup({
capabilities = capabilities,
})
end,
['pyright'] = function()
lspconfig['pyright'].setup({
cmd = { "pyright-langserver", "--stdio" },
filetypes = { "python" },
-- root_dir = function(filename)
-- return util.root_pattern(unpack(root_files))(filename) or util.path.dirname(filename)
-- end,
settings = {
python = {
analysis = {
autoSearchPaths = true,
diagnosticMode = "workspace",
useLibraryCodeForTypes = true
}
-- cmd = { "typescript-language-server", "--stdio" },
init_options = {
hostInfo = "neovim",
prferences = {
includePackagesJsonAutoImports = "on",
}
}
-- capabilities = capabilities,
-- settings = {
-- python = {
-- analysis = {
-- useLibraryCodeForTypes = true,
-- typeCheckingMode = "basic",
-- -- configPath = vim.fn.expand('./pyrightconfig.json')
-- }
-- }
-- },
})
end,
-- ['pyright'] = function()
-- lspconfig['pyright'].setup({
-- -- cmd = { "pyright-langserver", "--stdio" },
-- -- filetypes = { "python" },
-- -- root_dir = function(filename)
-- -- return util.root_pattern(unpack(root_files))(filename) or util.path.dirname(filename)
-- -- end,
-- -- settings = {
-- -- python = {
-- -- analysis = {
-- -- autoSearchPaths = true,
-- -- diagnosticMode = "workspace",
-- -- useLibraryCodeForTypes = true
-- -- }
-- -- }
-- -- }
-- capabilities = capabilities,
-- settings = {
-- python = {
-- analysis = {
-- useLibraryCodeForTypes = true,
-- typeCheckingMode = "basic",
-- -- configPath = vim.fn.expand('./pyrightconfig.json')
-- }
-- }
-- },
-- })
-- end,
})
end
}