From 3ff3e71f84781778b804ee8eccbb7ebcd864e699 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sat, 27 Jun 2026 16:41:20 +0300 Subject: Use r hotkey for normal rename, without jumping to the end, also don't prioritize snippets, show LSP first --- .config/nvim/lua/keymaps.lua | 11 +++++------ .config/nvim/lua/plugins/blink-cmp.lua | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/keymaps.lua b/.config/nvim/lua/keymaps.lua index aae2928..a5c1aad 100644 --- a/.config/nvim/lua/keymaps.lua +++ b/.config/nvim/lua/keymaps.lua @@ -117,14 +117,13 @@ local keymaps = { 'n', 'r', function() - -- require('live-rename').rename() + require('live-rename').rename() -- require('live-rename').rename({ cursorpos = -1 }) -- require('live-rename').rename({ insert = true, cursorpos = -1 }) - - require('live-rename').rename({ cursorpos = -1 }) - vim.schedule(function() - vim.api.nvim_feedkeys('A', 'n', false) - end) + -- require('live-rename').rename({ cursorpos = -1 }) + -- vim.schedule(function() + -- vim.api.nvim_feedkeys('A', 'n', false) + -- end) end, { desc = '[R]ename' }, }, diff --git a/.config/nvim/lua/plugins/blink-cmp.lua b/.config/nvim/lua/plugins/blink-cmp.lua index cea0cff..4e808b4 100644 --- a/.config/nvim/lua/plugins/blink-cmp.lua +++ b/.config/nvim/lua/plugins/blink-cmp.lua @@ -132,7 +132,7 @@ return { }, snippets = { - score_offset = 200, -- make snippets highest priority + -- score_offset = 200, -- make snippets highest priority }, lsp = { -- cgit v1.3.1