Browse Source

More unused keybinds.

master
Taylor Bockman 1 year ago
parent
commit
2af84863af
  1. 18
      lua/conf/keybinds.lua

18
lua/conf/keybinds.lua

@ -30,24 +30,6 @@ vim.api.nvim_set_keymap('n', '<Leader>r', '<cmd>lua NumberToggle()<CR>', keymap_
vim.api.nvim_set_keymap('n', '<CR>', ':noh<CR><CR>', keymap_opts)
-- Autocomplete bindings
vim.keymap.set('i', '<Tab>', function()
if vim.fn.pumvisible() == 1 then return '<C-n>' end
return '<Tab>'
end, {expr = true})
vim.keymap.set('i', '<S-Tab>', function()
if vim.fn.pumvisible() == 1 then return '<C-p>' end
return '<S-Tab>'
end, {expr = true})
vim.keymap.set('i', '<CR>', function()
if vim.fn.pumvisible() == 1 then
vim.cmd [[ asyncomplete#close_popup() . "\<CR>" ]]
else
return '<CR>'
end
end, {expr = true})
-- This one maps F5 to delete all trailing whitespace
vim.api.nvim_set_keymap(
'n',

Loading…
Cancel
Save