update nvim config

This commit is contained in:
2025-08-22 01:37:01 -07:00
parent ab82ecb001
commit 6317be3b2b
4 changed files with 23 additions and 2 deletions

View File

@@ -20,6 +20,20 @@ return {
"-e",
"2250",
}
-- Save original function
local orig_try_lint = lint.try_lint
lint.try_lint = function(...)
local bufnr = vim.api.nvim_get_current_buf()
local buftype = vim.api.nvim_get_option_value("buftype", { buf = bufnr })
-- Skip linting for non-file buffers (like hover docs)
if buftype ~= "" then
return
end
return orig_try_lint(...)
end
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
callback = function()