From 4c546f6fb72cfc21fff4f750faf981a732f14854 Mon Sep 17 00:00:00 2001 From: JP Appel Date: Fri, 20 Sep 2024 08:55:09 -0400 Subject: Fix language server configs --- nvim/lua/plugins/lsp.lua | 53 +++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 25 deletions(-) diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index b0b1ac6..d0ec530 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua @@ -98,35 +98,38 @@ local mason_lspconfig = { handlers = { function(server_name) require('lspconfig')[server_name].setup({}) - end - }, - ["lua_ls"] = function() - require('lspconfig').lua_ls.setup({ - settings = { - Lua = { - diagnostics = { - globals = { "vim" } + end, + ["lua_ls"] = function() + require('lspconfig').lua_ls.setup({ + settings = { + Lua = { + diagnostics = { + globals = { "vim" } + } } } - } - }) - end, - ["basedpyright"] = function() - require('lspconfig').setup({ - settings = { - pyright = { - -- defer to ruff for import oranization - disableOrganizeImports = true, - }, - python = { - analysis = { - -- Ignore all files for analysis to exclusively use Ruff for linting - ignore = { '*' }, + }) + end, + ["basedpyright"] = function() + require('lspconfig').basedpyright.setup({ + settings = { + basedpyright = { + -- defer to ruff for import oranization + disableOrganizeImports = true, + analysis = { + typeCheckingMode = "standard" + } + }, + python = { + analysis = { + -- Ignore all files for analysis to exclusively use Ruff for linting + ignore = { '*' }, + }, }, }, - }, - }) - end + }) + end + }, } } -- cgit v1.2.3