]> git.armaanb.net Git - dotfiles.git/commitdiff
nvim: disable keyword completion
authorArmaan Bhojwani <me@armaanb.net>
Mon, 22 Nov 2021 02:20:56 +0000 (21:20 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Mon, 22 Nov 2021 02:20:56 +0000 (21:20 -0500)
.config/nvim/init.lua

index ace82a734b2c7baa4c079be13a7886d04fbb2216..148dfde6e8b230823be21fb67c227da4838ce459 100644 (file)
@@ -60,6 +60,10 @@ map('n', '<C-c>', ':noh<CR>', opts)
 map('n', '<leader>f', ':Files<CR>', opts)
 -- TODO: Sharp corners... I can't figure this out
 
+-- Disable keyword completion
+map('i', '<C-n>', '<Down>', opts)
+map('i', '<C-p>', '<Up>', opts)
+
 -- Completion
 vim.opt.completeopt = vim.opt.completeopt + 'menuone'
 vim.opt.completeopt = vim.opt.completeopt - 'preview'