optimise python development for speed
This commit is contained in:
@@ -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
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user