optimise python development for speed

This commit is contained in:
Ivar Fatland
2025-08-27 14:16:59 +02:00
parent 18f3495a15
commit 8f8171b312
+4 -5
View File
@@ -110,12 +110,12 @@ vim.api.nvim_create_autocmd('BufEnter', {
end end
if vim.bo.filetype == 'go' then if vim.bo.filetype == 'go' then
vim.bo.makeprg = 'go' vim.bo.makeprg = 'go'
return elseif vim.bo.filetype == 'c' then
end
if vim.bo.filetype == 'c' then
if not has_makefile() then if not has_makefile() then
vim.bo.makeprg = 'tcc -run %' vim.bo.makeprg = 'tcc -run %'
end end
elseif vim.bo.filetype == 'python' then
vim.bo.makeprg = 'basedpyright'
end end
end, end,
}) })
@@ -474,12 +474,11 @@ require'lazy'.setup{ --{{{1
} }
} }
} }
vim.lsp.config.basedpyright = { vim.lsp.config.basedpyright = {
settings = { settings = {
basedpyright = { basedpyright = {
analysis = { analysis = {
diagnosticMode = 'workspace', useLibraryCodeForTypes = false
}, },
}, },
}, },