Compare commits

...

2 Commits

Author SHA1 Message Date
bc4cd2a521 added copy/paste from system clipboard in neovide 2024-04-30 08:59:51 +02:00
8f5efc66f6 added [l]ist which-key description 2024-04-30 08:59:28 +02:00
2 changed files with 10 additions and 0 deletions

View File

@ -53,6 +53,14 @@ vim.keymap.set('n', '<leader>lo', '<cmd>copen<cr>', { desc = 'Quickfix [L]ist [O
vim.keymap.set('n', '<C-S-j>', '<cmd>cnext<cr>')
vim.keymap.set('n', '<C-S-k>', '<cmd>cprev<cr>')
if vim.g.neovide then
-- System clipboard keybinds in normal and visual mode
vim.keymap.set({ 'n', 'v' }, '<C-S-C>', '"+y', { desc = 'Yank to System clipboard' })
vim.keymap.set({ 'n', 'v' }, '<C-S-V>', '"+p', { desc = 'Paste from System clipboard' })
-- Clipboard for command mode
vim.keymap.set('c', '<C-S-V>', '<C-R>+', { desc = 'Paste from System clipboard' })
end
-- [[ Basic Autocommands ]]
-- See `:help lua-guide-autocommands`

View File

@ -33,6 +33,7 @@ return {
['<leader>h'] = { name = 'Git [H]unk/[H]arpoon', _ = 'which_key_ignore' },
['<leader>t'] = { name = '[T]oggle', _ = 'which_key_ignore' },
['<leader>dn'] = { name = '[N]o', _ = 'which_key_ignore' },
['<leader>l'] = { name = '[L]ist', _ = 'which_key_ignore' },
}
-- register which-key VISUAL mode
@ -45,6 +46,7 @@ return {
['<leader>t'] = { name = '[T]oggle', _ = 'which_key_ignore' },
['<leader>dn'] = { name = '[N]o', _ = 'which_key_ignore' },
['<leader>pn'] = { name = '[N]o', _ = 'which_key_ignore' },
['<leader>l'] = { name = '[L]ist', _ = 'which_key_ignore' },
}, { mode = 'v' })
end,
},