nvim: plugins: Switch from vim-signature to marks.nvim

This commit is contained in:
Sanchayan Maity 2021-10-14 00:00:39 +05:30
parent 8e1b5c1a34
commit 4c6a34d07f
2 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1,14 @@
local remap = vim.api.nvim_set_keymap
local opts = { noremap=true, silent=true, unique=true }
require'marks'.setup {
cyclic = true,
default_mappings = true,
builtin_marks = { "'", ".", "<", ">", "^" },
}
remap('n', '<Leader>mt', ':MarksToggleSigns<CR>', opts)
remap('n', '<Leader>mb', ':MarksListBuf<CR>' , opts)
remap('n', '<Leader>mg', ':MarksListGlobal<CR>' , opts)
remap('n', '<Leader>ma', ':MarksListAll<CR>' , opts)
remap('n', '<Leader>mB', ':BookmarksListAll<CR>', opts)

View file

@ -121,7 +121,7 @@ local init = function ()
}
-- Marks and registers
use {
'kshenoy/vim-signature',
'chentau/marks.nvim',
}
-- Snippets
use 'hrsh7th/vim-vsnip'