This commit is contained in:
Ray Andrew 2024-09-16 16:52:13 -05:00
parent 89e05d29a1
commit 03cd10510a
3 changed files with 19 additions and 0 deletions

View file

@ -122,6 +122,14 @@ vim.api.nvim_create_autocmd('TextYankPost', {
end, end,
}) })
-- https://neovim.discourse.group/t/how-do-i-jump-to-relative-line-number-with-gj-gk/2203/2
vim.keymap.set({ 'n', 'x' }, 'j', function()
return vim.v.count > 0 and 'j' or 'gj'
end, { noremap = true, expr = true })
vim.keymap.set({ 'n', 'x' }, 'k', function()
return vim.v.count > 0 and 'k' or 'gk'
end, { noremap = true, expr = true })
-- treat underscore and hyphen NOT as word separators -- treat underscore and hyphen NOT as word separators
-- vim.opt.iskeyword:remove '-' -- vim.opt.iskeyword:remove '-'
-- vim.opt.iskeyword:remove '_' -- vim.opt.iskeyword:remove '_'

View file

@ -143,3 +143,13 @@ end, {
nargs = '*', nargs = '*',
desc = 'Run compile command', desc = 'Run compile command',
}) })
-- https://www.reddit.com/r/neovim/comments/vnodft/comment/ie87z9r/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
local wr_group = vim.api.nvim_create_augroup('WinResize', { clear = true })
vim.api.nvim_create_autocmd('VimResized', {
group = wr_group,
pattern = '*',
command = 'wincmd =',
desc = 'Automatically resize windows when the host window size changes.',
})

View file

@ -1,6 +1,7 @@
return { return {
{ {
'yetone/avante.nvim', 'yetone/avante.nvim',
enabled = false,
event = 'VeryLazy', event = 'VeryLazy',
build = 'make', build = 'make',
opts = { opts = {