summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/keymaps.lua
blob: 070ddc989c729cd8a74a2c11cb488afd3ac5b706 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--[[
-- Keymaps
--]]

local map = vim.api.nvim_set_keymap
local cmd = vim.cmd

options = {noremap=true}

map('i', '<C-h>', '<Left>', options)
map('i', '<C-j>', '<Down>', options)
map('i', '<C-k>', '<Up>', options)
map('i', '<C-l>', '<Right>', options)
map('i', '<C-l>', '<Right>', options)

map('', '<C-n>', ':NvimTreeToggle<CR>', options)

--[[
map('n', '<silent><expr>', '<C-Space>', 'compe#complete()', options)
map('n', '<silent><expr>', '<CR>', 'compe#confirm(\'<CR>\'', options)
map('n', '<silent><expr>', '<C-e>', 'compe#close(\'<C-e>\'', options)
map('n', '<silent><expr>', '<C-f>', 'compe#scroll({\'delta\': +4}', options)
map('n', '<silent><expr>', '<C-d>', 'compe#scroll({\'delta\': -4}', options)
--]]
remember that computers suck.