feat(nvim): update plugins and config

This commit is contained in:
2026-04-24 20:42:17 -04:00
parent 45dceba337
commit 2aff2eb423
14 changed files with 251 additions and 215 deletions
+12
View File
@@ -4,6 +4,18 @@ vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter", "CursorHold", "CursorHo
command = "checktime",
})
-- get terminal to follow directory
vim.api.nvim_create_autocmd({ 'TermRequest' }, {
desc = 'Handles OSC 7 dir change requests',
callback = function(ev)
local pwd, n = string.gsub(ev.data.sequence, '\027]7;file://[^/]*', '')
if n <= 0 then return end
if vim.fn.isdirectory(pwd) == 0 then return end
if vim.api.nvim_get_current_buf() ~= ev.buf then return end
vim.cmd.cd(pwd)
end
})
-- Check if we need to reload the file when it changed
vim.api.nvim_create_autocmd({ "FocusGained", "TermClose", "TermLeave" }, {
desc = 'Check time',