mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Merge 02c228bb2f into 83d90f339d
This commit is contained in:
commit
36fa05d452
5 changed files with 42 additions and 8 deletions
10
NEWS.md
10
NEWS.md
|
|
@ -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
|
||||
- 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
|
||||
|
||||
Big new release with a lot of changes and improvements!
|
||||
|
|
|
|||
|
|
@ -153,6 +153,7 @@ Snacks.toggle.option("background", { off = "light", on = "dark" , name = "Dark B
|
|||
Snacks.toggle.dim():map("<leader>uD")
|
||||
Snacks.toggle.animate():map("<leader>ua")
|
||||
Snacks.toggle.indent():map("<leader>ug")
|
||||
Snacks.toggle.codelens():map("<leader>uH")
|
||||
Snacks.toggle.scroll():map("<leader>uS")
|
||||
Snacks.toggle.profiler():map("<leader>dpp")
|
||||
Snacks.toggle.profiler_highlights():map("<leader>dph")
|
||||
|
|
|
|||
|
|
@ -184,6 +184,9 @@ return {
|
|||
map("n", "<leader>ghd", gs.diffthis, "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("n", "<leader>xh", gs.setqflist, "Git hunks (file)")
|
||||
map("n", "<leader>xH", function() gs.setqflist("all") end, "Git hunks (all)")
|
||||
end,
|
||||
},
|
||||
},
|
||||
|
|
@ -199,6 +202,24 @@ return {
|
|||
require("gitsigns").toggle_signs(state)
|
||||
end,
|
||||
}):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,
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -249,6 +249,7 @@ return {
|
|||
{ "<leader>sl", "<cmd>FzfLua loclist<cr>", desc = "Location List" },
|
||||
{ "<leader>sM", "<cmd>FzfLua man_pages<cr>", desc = "Man Pages" },
|
||||
{ "<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>sq", "<cmd>FzfLua quickfix<cr>", desc = "Quickfix List" },
|
||||
{ "<leader>sw", LazyVim.pick("grep_cword"), desc = "Word (Root Dir)" },
|
||||
|
|
|
|||
|
|
@ -46,6 +46,15 @@ return {
|
|||
desc = "Inline Variable",
|
||||
expr = true,
|
||||
},
|
||||
{
|
||||
"<leader>rI",
|
||||
function()
|
||||
return require("refactoring").refactor("Inline Function")
|
||||
end,
|
||||
mode = { "n", "x" },
|
||||
desc = "Inline Function",
|
||||
expr = true,
|
||||
},
|
||||
{
|
||||
"<leader>rb",
|
||||
function()
|
||||
|
|
@ -113,14 +122,6 @@ return {
|
|||
desc = "Extract Variable",
|
||||
expr = true,
|
||||
},
|
||||
{
|
||||
"<leader>rp",
|
||||
function()
|
||||
require("refactoring").debug.print_var()
|
||||
end,
|
||||
mode = { "n", "x" },
|
||||
desc = "Debug Print Variable",
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
prompt_func_return_type = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue