211 current 2025-01-11 04:46:12 25.05.20241217.d3c42f1 6.6.66 *

This commit is contained in:
2025-01-11 04:46:23 -05:00
parent 7978aa21c9
commit 6119a510c4
2 changed files with 15 additions and 0 deletions

View File

@@ -133,6 +133,12 @@ vim.api.nvim_set_keymap("x", "<C-l>", "w", { noremap = true })
vim.api.nvim_set_keymap("i", "<C-BS>", "<C-W>", { noremap = true })
vim.api.nvim_set_keymap("i", "<C-H>", "<C-W>", { noremap = true })
-- nagiation
vim.api.nvim_set_keymap('n', '<C-j>', '<C-w>h', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<C-k>', '<C-w>j', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<C-i>', '<C-w>k', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<C-l>', '<C-w>l', { noremap = true, silent = true })
------------------------------------------------------
-- AUTOCMD
------------------------------------------------------

View File

@@ -3,3 +3,12 @@ local opts = { noremap = true, silent = true }
-- "Focus" commands that rely on the Goyo plugin
vim.api.nvim_set_keymap("n", "<C-a>z", ":Goyo 80<CR>", opts)
vim.api.nvim_set_keymap("n", "<C-a>q", ":Goyo!<CR>", opts)
-- automatically resize goyo when nvim resizes
vim.api.nvim_create_autocmd("VimResized", {
callback = function()
if vim.fn.exists('#goyo') == 1 then
vim.cmd("normal <C-w>=")
end
end,
})