summaryrefslogblamecommitdiffstats
path: root/.config/nvim/lua/keymaps.lua
blob: 070ddc989c729cd8a74a2c11cb488afd3ac5b706 (plain) (tree)























                                                                            
--[[
-- 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.