nvim basic config
This commit is contained in:
2
nvim/.config/nvim/lua/romanzy/init.lua
Normal file
2
nvim/.config/nvim/lua/romanzy/init.lua
Normal file
@@ -0,0 +1,2 @@
|
||||
require("romanzy.set")
|
||||
require("romanzy.remap")
|
||||
14
nvim/.config/nvim/lua/romanzy/remap.lua
Normal file
14
nvim/.config/nvim/lua/romanzy/remap.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
vim.keymap.set("n", "<leader>dl", vim.cmd.Ex)
|
||||
|
||||
vim.keymap.set("n", "<leader>s", ":set spell!<CR>")
|
||||
|
||||
-- terminal exploration...
|
||||
-- original to exit terminal mode on Esc
|
||||
--vim.keymap.set("t", "<Esc>", "<C-\\><C-n>")
|
||||
-- new one to go back to main window
|
||||
vim.keymap.set("t", "<Esc>", "<C-\\><C-n><C-w>k")
|
||||
|
||||
vim.keymap.set("n", "<leader>t", "<C-w>ji")
|
||||
24
nvim/.config/nvim/lua/romanzy/set.lua
Normal file
24
nvim/.config/nvim/lua/romanzy/set.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
vim.opt.nu = true
|
||||
vim.opt.relativenumber = true
|
||||
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.expandtab = true
|
||||
|
||||
vim.opt.smartindent = true
|
||||
|
||||
vim.opt.wrap = false -- no line wrapping...
|
||||
|
||||
vim.opt.incsearch = true
|
||||
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
vim.opt.scrolloff = 8
|
||||
vim.opt.signcolumn = "yes"
|
||||
|
||||
vim.opt.updatetime = 50
|
||||
|
||||
vim.opt.colorcolumn = "80"
|
||||
|
||||
vim.opt.spelllang = { 'en_us' }
|
||||
Reference in New Issue
Block a user