Add keymaps from current config
This commit is contained in:
parent
d07758bb0b
commit
37107fb8e6
2 changed files with 45 additions and 10 deletions
12
init.lua
12
init.lua
|
|
@ -4,9 +4,7 @@
|
|||
==================== READ THIS BEFORE CONTINUING ====================
|
||||
=====================================================================
|
||||
|
||||
Kickstart.nvim is *not* a distribution.
|
||||
|
||||
Kickstart.nvim is a template for your own configuration.
|
||||
Kickstart.nvim is *not* a distribution. Kickstart.nvim is a template for your own configuration.
|
||||
The goal is that you can read every line of code, top-to-bottom, understand
|
||||
what your configuration is doing, and modify it to suit your needs.
|
||||
|
||||
|
|
@ -232,16 +230,10 @@ require('lazy').setup({
|
|||
|
||||
-- [[ Setting options ]]
|
||||
-- See `:help vim.o`
|
||||
require('custom')
|
||||
-- [[ 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 })
|
||||
require('custom')
|
||||
|
||||
-- [[ Highlight on yank ]]
|
||||
-- See `:help vim.highlight.on_yank()`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue