extracting some plugin configuration from init.lua

This commit is contained in:
Lorne Stalker 2023-08-29 19:58:46 +01:00
parent 32b04db8ed
commit d88024c1d9
6 changed files with 107 additions and 131 deletions

12
lua/lornest/remap.lua Normal file
View 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 })