From 8f8171b312bc2711384d6770bbfeb50181fed253 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Wed, 27 Aug 2025 14:16:59 +0200 Subject: [PATCH] optimise python development for speed --- nvim/.config/nvim/init.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index 7051765..8baf44d 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -110,12 +110,12 @@ vim.api.nvim_create_autocmd('BufEnter', { end if vim.bo.filetype == 'go' then vim.bo.makeprg = 'go' - return - end - if vim.bo.filetype == 'c' then + elseif vim.bo.filetype == 'c' then if not has_makefile() then vim.bo.makeprg = 'tcc -run %' end + elseif vim.bo.filetype == 'python' then + vim.bo.makeprg = 'basedpyright' end end, }) @@ -474,12 +474,11 @@ require'lazy'.setup{ --{{{1 } } } - vim.lsp.config.basedpyright = { settings = { basedpyright = { analysis = { - diagnosticMode = 'workspace', + useLibraryCodeForTypes = false }, }, },