Skip to content

Commit

Permalink
Restore keymappings that got dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
speshak committed Mar 4, 2024
1 parent 9477b8c commit f053ada
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions dot_config/nvim/lua/core/keymaps.lua.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
local cmd = vim.cmd
local g = vim.g
local map = vim.keymap.set

-- Set space as my leader key
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '

-- Better indenting
-- (Don't lose the selection after indenting)
map('v', '<', '<gv')
map('v', '>', '>gv')

-- vim:ft=lua
12 changes: 10 additions & 2 deletions dot_config/nvim/lua/plugins/editor.lua.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
-- language
return {
-- User interface
'scrooloose/nerdtree',
{'scrooloose/nerdtree',
config = function()
vim.keymap.set({'n', 'v', 'i'}, '<F6>', ':NERDTreeToggle<CR>')
end
},
'ctrlpvim/ctrlp.vim',
{'vim-airline/vim-airline',
config = function(plugin)
Expand All @@ -13,7 +17,11 @@ return {
'tpope/vim-fugitive',
'tpope/vim-surround',
'cohama/lexima.vim',
'ntpeters/vim-better-whitespace',
{'ntpeters/vim-better-whitespace',
config = function()
vim.keymap.set({'n', 'v', 'i'}, '<F7>', ':StripWhitespace<CR>')
end
},
{'nathanaelkane/vim-indent-guides',
config = function()
vim.g.indent_guides_start_level = 2
Expand Down

0 comments on commit f053ada

Please sign in to comment.