[UPDATE] formating and some wezterm settings
This commit is contained in:
12
lua/plugins/conform.lua
Normal file
12
lua/plugins/conform.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
return {
|
||||
"stevearc/conform.nvim",
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
-- python = { "ruff" },
|
||||
python = { "black" },
|
||||
},
|
||||
},
|
||||
dependencies = {
|
||||
"mason.nvim",
|
||||
},
|
||||
}
|
||||
@@ -2,20 +2,9 @@ return {
|
||||
"mfussenegger/nvim-lint",
|
||||
config = function()
|
||||
local lint = require("lint")
|
||||
|
||||
lint.linters_by_ft = {
|
||||
python = { "flake8" },
|
||||
}
|
||||
|
||||
-- local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
||||
|
||||
-- vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
|
||||
-- group = lint_augroup,
|
||||
-- callback = function()
|
||||
-- lint.try_lint()
|
||||
-- end,
|
||||
-- })
|
||||
|
||||
vim.keymap.set("n", "<leader>l", function()
|
||||
lint.try_lint()
|
||||
end, { desc = "Trigger linting for current file" })
|
||||
|
||||
Reference in New Issue
Block a user