Add linter support, isort for formatters and use jedi instead of basedpyright

This commit is contained in:
Zam Kokott
2025-11-17 11:33:36 +00:00
parent dd981c1a1f
commit b00d96f033
5 changed files with 21 additions and 15 deletions

17
lua/plugins/linter.lua Normal file
View File

@@ -0,0 +1,17 @@
return {
'mfussenegger/nvim-lint',
config = function()
local lint = require("lint")
lint.linters_by_ft = {
python = { 'dmypy' }
}
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "TextChanged", "InsertLeave" }, {
callback = function()
-- try_lint without arguments runs the linters defined in `linters_by_ft`
-- for the current filetype
require("lint").try_lint()
end,
})
end
}