extracting some plugin configuration from init.lua
This commit is contained in:
parent
32b04db8ed
commit
d88024c1d9
6 changed files with 107 additions and 131 deletions
12
lua/lornest/remap.lua
Normal file
12
lua/lornest/remap.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
vim.g.mapleader = ' '
|
||||
vim.g.maplocalleader = ' '
|
||||
|
||||
-- [[ Basic Keymaps ]]
|
||||
|
||||
-- Keymaps for better default experience
|
||||
-- See `:help vim.keymap.set()`
|
||||
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
|
||||
|
||||
-- Remap for dealing with word wrap
|
||||
vim.keymap.set('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
|
||||
vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
|
||||
Loading…
Add table
Add a link
Reference in a new issue