adopt neovim 0.12 native editing features
This commit is contained in:
parent
fa39d0a36c
commit
282e5e0f0b
18 changed files with 125 additions and 215 deletions
|
|
@ -9,6 +9,11 @@
|
|||
|
||||
local map = vim.keymap.set
|
||||
|
||||
-- Neovim 0.12's optional native undo-tree viewer.
|
||||
if vim.fn.has('nvim-0.12') == 1 then
|
||||
map('n', '<leader>u', '<cmd>Undotree<cr>', { desc = 'Undotree: Toggle native undo tree', silent = true })
|
||||
end
|
||||
|
||||
-- Fallback navigation keymaps for non-LSP buffers
|
||||
-- When LSP attaches, buffer-local keymaps in lsp.lua override these
|
||||
map('n', 'gd', function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue