nvim: plugins: Switch from vim-signature to marks.nvim
This commit is contained in:
parent
8e1b5c1a34
commit
4c6a34d07f
2 changed files with 15 additions and 1 deletions
14
nvim/.config/nvim/after/plugin/marks.lua
Normal file
14
nvim/.config/nvim/after/plugin/marks.lua
Normal 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)
|
|
@ -121,7 +121,7 @@ local init = function ()
|
||||||
}
|
}
|
||||||
-- Marks and registers
|
-- Marks and registers
|
||||||
use {
|
use {
|
||||||
'kshenoy/vim-signature',
|
'chentau/marks.nvim',
|
||||||
}
|
}
|
||||||
-- Snippets
|
-- Snippets
|
||||||
use 'hrsh7th/vim-vsnip'
|
use 'hrsh7th/vim-vsnip'
|
||||||
|
|
Loading…
Reference in a new issue