add neovim config

This commit is contained in:
2023-06-03 10:21:21 -04:00
parent a13c0625f2
commit ee36c5d56c
5 changed files with 94 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
local opt = vim.opt
-- line numbers
opt.number = true
opt.relativenumber = true
-- tabs & indents
opt.tabstop = 3
opt.shiftwidth = 3
opt.expandtab = true
opt.autoindent = true
-- disable line wrapping
opt.wrap = false
-- search
opt.ignorecase = true
opt.smartcase = true
-- cursor line
opt.cursorline = true
-- appearance
opt.termguicolors = false
opt.background = "dark"
opt.signcolumn = "yes"
-- backspace
opt.backspace = "indent,eol,start"
-- clipboard
opt.clipboard:append("unnamedplus") -- use system clipboard as the default register
-- split windows
opt.splitright = true
opt.splitbelow = true
opt.iskeyword:append("-") -- consider string-string as a whole word