Latest NVIM Config
This commit is contained in:
18
lua/core/keymaps.lua
Normal file
18
lua/core/keymaps.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
vim.g.mapleader = ' '
|
||||
vim.g.maplocalleader = ' '
|
||||
|
||||
vim.opt.backspace = '2'
|
||||
vim.opt.showcmd = true
|
||||
vim.opt.laststatus = 2
|
||||
vim.opt.autowrite = true
|
||||
vim.opt.cursorline = true
|
||||
vim.opt.autoread = true
|
||||
|
||||
-- use space for tab
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.shiftround = true
|
||||
vim.opt.expandtab = true
|
||||
|
||||
vim.keymap.set('n', '<leader>h', ':nohlsearch<CR>')
|
||||
vim.api.nvim_command('set number')
|
||||
Reference in New Issue
Block a user