update nvchad to 2.5.0

This commit is contained in:
2024-03-10 20:56:39 +05:30
parent c8c9d2424d
commit 2c25b8ba1c
16 changed files with 153 additions and 120 deletions

View File

@ -0,0 +1,21 @@
-- Doesn't work
local lint = require("lint")
lint.linters_by_ft = {
lua = { "luacheck" },
javascript = { "eslint_d" },
typescript = { "eslint_d" },
javascriptreact = { "eslint_d" },
typescriptreact = { { "eslint_d" } },
nix = { "statix" },
}
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,
})