[UPDATE] formating and some wezterm settings

This commit is contained in:
Daveanand Mannie
2025-02-09 19:38:59 -05:00
parent 88de1d9c40
commit edb7454e48
4 changed files with 17 additions and 20 deletions

12
lua/plugins/conform.lua Normal file
View File

@@ -0,0 +1,12 @@
return {
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
-- python = { "ruff" },
python = { "black" },
},
},
dependencies = {
"mason.nvim",
},
}

View File

@@ -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" })