added yanky
This commit is contained in:
parent
39c648bbbe
commit
cb8be9c3d2
@ -18,6 +18,7 @@ return {
|
|||||||
{ 'dmitmel/cmp-cmdline-history' },
|
{ 'dmitmel/cmp-cmdline-history' },
|
||||||
{ 'ray-x/cmp-treesitter' },
|
{ 'ray-x/cmp-treesitter' },
|
||||||
{ 'hrsh7th/cmp-nvim-lsp-signature-help' },
|
{ 'hrsh7th/cmp-nvim-lsp-signature-help' },
|
||||||
|
{ 'chrisgrieser/cmp_yanky' },
|
||||||
{ 'p00f/clangd_extensions.nvim' },
|
{ 'p00f/clangd_extensions.nvim' },
|
||||||
{
|
{
|
||||||
'windwp/nvim-autopairs',
|
'windwp/nvim-autopairs',
|
||||||
@ -102,6 +103,15 @@ return {
|
|||||||
},
|
},
|
||||||
{ name = 'nvim_lsp_signature_help', priority = 7 },
|
{ name = 'nvim_lsp_signature_help', priority = 7 },
|
||||||
-- { name = 'treesitter', priority = 6 },
|
-- { name = 'treesitter', priority = 6 },
|
||||||
|
{
|
||||||
|
name = 'cmp_yanky',
|
||||||
|
option = {
|
||||||
|
-- only suggest items which match the current filetype
|
||||||
|
onlyCurrentFiletype = false,
|
||||||
|
-- only suggest items with a minimum length
|
||||||
|
minLength = 3,
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name = 'buffer',
|
name = 'buffer',
|
||||||
priority = 3,
|
priority = 3,
|
||||||
|
13
lua/plugins/yanky.lua
Normal file
13
lua/plugins/yanky.lua
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
return {
|
||||||
|
'gbprod/yanky.nvim',
|
||||||
|
config = function()
|
||||||
|
require('yanky').setup({})
|
||||||
|
vim.keymap.set({ 'n', 'x' }, 'p', '<Plug>(YankyPutAfter)')
|
||||||
|
vim.keymap.set({ 'n', 'x' }, 'P', '<Plug>(YankyPutBefore)')
|
||||||
|
vim.keymap.set({ 'n', 'x' }, 'gp', '<Plug>(YankyGPutAfter)')
|
||||||
|
vim.keymap.set({ 'n', 'x' }, 'gP', '<Plug>(YankyGPutBefore)')
|
||||||
|
|
||||||
|
vim.keymap.set('n', '<c-p>', '<Plug>(YankyPreviousEntry)')
|
||||||
|
vim.keymap.set('n', '<c-n>', '<Plug>(YankyNextEntry)')
|
||||||
|
end,
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user