This commit is contained in:
Oleh Kostiuk 2026-04-17 19:58:21 +00:00 committed by GitHub
commit 36fa05d452
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 42 additions and 8 deletions

10
NEWS.md
View file

@ -18,6 +18,16 @@ Going forward, **LazyVim** requires **Neovim** `>= 0.11.2`, and drops support fo
- enabled [blink.cmp](https://github.com/saghen/blink.cmp) **cmdline** completions - enabled [blink.cmp](https://github.com/saghen/blink.cmp) **cmdline** completions
- use **LSP** based folding when available (disable with `nvim-lspconfig.folds.enabled = false`) - use **LSP** based folding when available (disable with `nvim-lspconfig.folds.enabled = false`)
### Keymaps
- `<leader>uH` to toggle LSP Codelens [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig)
- `<leader>sp` to pick a picker [fzf-lua](https://github.com/ibhagwan/fzf-lua)
- `<leader>xh` to show file hunks as Quickfix [gitsigns](https://github.com/lewis6991/gitsigns.nvim)
- `<leader>xH` to show project hunks as Quickfix [gitsigns](https://github.com/lewis6991/gitsigns.nvim)
- `<leader>uB` to toggle current line blame [gitsigns](https://github.com/lewis6991/gitsigns.nvim)
- `<leader>uW` to toggle word diff [gitsigns](https://github.com/lewis6991/gitsigns.nvim)
- `<leader>rI` to inline function [refactoring](https://github.com/ThePrimeagen/refactoring.nvim)
## 14.x ## 14.x
Big new release with a lot of changes and improvements! Big new release with a lot of changes and improvements!

View file

@ -153,6 +153,7 @@ Snacks.toggle.option("background", { off = "light", on = "dark" , name = "Dark B
Snacks.toggle.dim():map("<leader>uD") Snacks.toggle.dim():map("<leader>uD")
Snacks.toggle.animate():map("<leader>ua") Snacks.toggle.animate():map("<leader>ua")
Snacks.toggle.indent():map("<leader>ug") Snacks.toggle.indent():map("<leader>ug")
Snacks.toggle.codelens():map("<leader>uH")
Snacks.toggle.scroll():map("<leader>uS") Snacks.toggle.scroll():map("<leader>uS")
Snacks.toggle.profiler():map("<leader>dpp") Snacks.toggle.profiler():map("<leader>dpp")
Snacks.toggle.profiler_highlights():map("<leader>dph") Snacks.toggle.profiler_highlights():map("<leader>dph")

View file

@ -184,6 +184,9 @@ return {
map("n", "<leader>ghd", gs.diffthis, "Diff This") map("n", "<leader>ghd", gs.diffthis, "Diff This")
map("n", "<leader>ghD", function() gs.diffthis("~") end, "Diff This ~") map("n", "<leader>ghD", function() gs.diffthis("~") end, "Diff This ~")
map({ "o", "x" }, "ih", ":<C-U>Gitsigns select_hunk<CR>", "GitSigns Select Hunk") map({ "o", "x" }, "ih", ":<C-U>Gitsigns select_hunk<CR>", "GitSigns Select Hunk")
map("n", "<leader>xh", gs.setqflist, "Git hunks (file)")
map("n", "<leader>xH", function() gs.setqflist("all") end, "Git hunks (all)")
end, end,
}, },
}, },
@ -199,6 +202,24 @@ return {
require("gitsigns").toggle_signs(state) require("gitsigns").toggle_signs(state)
end, end,
}):map("<leader>uG") }):map("<leader>uG")
Snacks.toggle({
name = "Git Line Blame",
get = function()
return require("gitsigns.config").config.current_line_blame
end,
set = function(state)
require("gitsigns").toggle_current_line_blame(state)
end,
}):map("<leader>uB")
Snacks.toggle({
name = "Git Word Diff",
get = function()
return require("gitsigns.config").config.word_diff
end,
set = function(state)
require("gitsigns").toggle_word_diff(state)
end,
}):map("<leader>uW")
end, end,
}, },

View file

@ -249,6 +249,7 @@ return {
{ "<leader>sl", "<cmd>FzfLua loclist<cr>", desc = "Location List" }, { "<leader>sl", "<cmd>FzfLua loclist<cr>", desc = "Location List" },
{ "<leader>sM", "<cmd>FzfLua man_pages<cr>", desc = "Man Pages" }, { "<leader>sM", "<cmd>FzfLua man_pages<cr>", desc = "Man Pages" },
{ "<leader>sm", "<cmd>FzfLua marks<cr>", desc = "Jump to Mark" }, { "<leader>sm", "<cmd>FzfLua marks<cr>", desc = "Jump to Mark" },
{ "<leader>sp", "<cmd>FzfLua builtin fuzzy=true<cr>", desc = "FZF pickers" },
{ "<leader>sR", "<cmd>FzfLua resume<cr>", desc = "Resume" }, { "<leader>sR", "<cmd>FzfLua resume<cr>", desc = "Resume" },
{ "<leader>sq", "<cmd>FzfLua quickfix<cr>", desc = "Quickfix List" }, { "<leader>sq", "<cmd>FzfLua quickfix<cr>", desc = "Quickfix List" },
{ "<leader>sw", LazyVim.pick("grep_cword"), desc = "Word (Root Dir)" }, { "<leader>sw", LazyVim.pick("grep_cword"), desc = "Word (Root Dir)" },

View file

@ -46,6 +46,15 @@ return {
desc = "Inline Variable", desc = "Inline Variable",
expr = true, expr = true,
}, },
{
"<leader>rI",
function()
return require("refactoring").refactor("Inline Function")
end,
mode = { "n", "x" },
desc = "Inline Function",
expr = true,
},
{ {
"<leader>rb", "<leader>rb",
function() function()
@ -113,14 +122,6 @@ return {
desc = "Extract Variable", desc = "Extract Variable",
expr = true, expr = true,
}, },
{
"<leader>rp",
function()
require("refactoring").debug.print_var()
end,
mode = { "n", "x" },
desc = "Debug Print Variable",
},
}, },
opts = { opts = {
prompt_func_return_type = { prompt_func_return_type = {