diff --git a/lua/core/autocommands.lua b/lua/core/autocommands.lua index f6372b81..3f53bb53 100644 --- a/lua/core/autocommands.lua +++ b/lua/core/autocommands.lua @@ -13,7 +13,7 @@ vim.api.nvim_create_autocmd('TextYankPost', { }) vim.api.nvim_create_autocmd('ColorScheme', { - desc = 'Reset colors for some elemnts after changeing the colorscheme.', + desc = 'Reset colors for some elements after changing the colorscheme.', group = vim.api.nvim_create_augroup('ElementsColorReset', { clear = true }), callback = function() vim.api.nvim_set_hl(0, 'WinSeparator', vim.api.nvim_get_hl(0, { name = 'CursorLineNr' })) diff --git a/lua/plugins/blink.lua b/lua/plugins/blink.lua index a16f20f2..1a3909de 100644 --- a/lua/plugins/blink.lua +++ b/lua/plugins/blink.lua @@ -35,7 +35,7 @@ return { -- set autocommand for blink-menu-sourcename. vim.api.nvim_create_autocmd('ColorScheme', { desc = 'set italic to BlinkCmpSource, and try to change fg', - group = vim.api.nvim_create_augroup('ColorReadjust', { clear = true }), + group = vim.api.nvim_create_augroup('blink.cmp-source-hl', { clear = true }), callback = function() local hl = { default = true, diff --git a/lua/plugins/fzf-lua.lua b/lua/plugins/fzf-lua.lua index fb2353fd..e77e016c 100644 --- a/lua/plugins/fzf-lua.lua +++ b/lua/plugins/fzf-lua.lua @@ -24,10 +24,10 @@ return { vim.keymap.set('n', 'fr', fl.oldfiles, { desc = 'Recent files' }) vim.keymap.set('n', 'ft', fl.treesitter, { desc = 'Treesiter objects' }) vim.keymap.set('n', 'fn', function() - fl.files { cwd = '~/.config/nvim/' } + fl.files { cwd = vim.fn.stdpath 'config' } end, { desc = 'Neovim config files' }) vim.keymap.set('n', 'fN', function() - fl.files { cwd = '~/.local/share/nvim/lazy/' } + fl.files { cwd = vim.fn.stdpath 'data' .. '/lazy/' } end, { desc = 'Neovim plugins src' }) -- grep specific @@ -40,8 +40,11 @@ return { vim.keymap.set('n', 'g.', function() fl.grep { resume = true } end, { desc = 'Resume last grep' }) + vim.keymap.set('n', 'gn', function() + fl.live_grep { cwd = '$VIMRUNTIME/doc' } + end, { desc = 'Grep Neovim docs' }) vim.keymap.set('n', 'gN', function() - fl.live_grep { cwd = '~/.local/share/nvim/lazy/' } + fl.live_grep { cwd = vim.fn.stdpath 'data' .. '/lazy/' } end, { desc = 'Grep Neovim plugins src' }) -- -- Git specific diff --git a/lua/plugins/which-key.lua b/lua/plugins/which-key.lua index a2c883ec..24b24c6b 100644 --- a/lua/plugins/which-key.lua +++ b/lua/plugins/which-key.lua @@ -26,7 +26,7 @@ return { { 'v', group = '[V]ersion control', mode = { 'n', 'v' } }, { 'l', group = '[L]SP', mode = { 'n', 'v' } }, { 't', group = '[T]oggle' }, - { 'd', group = '[D]iangostic' }, + { 'd', group = '[D]iagnostic' }, { 'ao', group = 'TS text[O]bject', mode = { 'v', 'o' } }, { 'io', group = 'TS text[O]bject', mode = { 'v', 'o' } }, { '[o', group = 'TS text[O]bject', mode = { 'n', 'v', 'o' } },