change some options

folding settings
fixed undodir giving error
updated comments to make more sense
This commit is contained in:
2024-11-03 18:11:12 -05:00
parent 3a26c9401e
commit b7084e57f8
+14 -2
View File
@@ -14,7 +14,7 @@ opt.expandtab = true
opt.smartindent = true opt.smartindent = true
opt.autoindent = true opt.autoindent = true
-- disable line wrapping -- line wrapping
opt.wrap = false opt.wrap = false
-- search -- search
@@ -30,6 +30,11 @@ opt.termguicolors = true
opt.background = "dark" opt.background = "dark"
opt.signcolumn = "yes" opt.signcolumn = "yes"
opt.colorcolumn = "90" opt.colorcolumn = "90"
vim.diagnostic.config {
float = {
border = "rounded",
},
}
-- backspace -- backspace
opt.backspace = "indent,eol,start" opt.backspace = "indent,eol,start"
@@ -42,6 +47,13 @@ opt.splitright = true
opt.splitbelow = true opt.splitbelow = true
-- save me -- save me
opt.undodir = os.getenv "HOME" .. "/.config/nvim/.undo" opt.undodir = { os.getenv "HOME" .. "/.config/nvim/.undo/" }
opt.undofile = true opt.undofile = true
-- folding
opt.foldlevel = 20
opt.foldmethod = "expr"
opt.foldexpr = "nvim_treesitter#foldexpr()"
-- session management
opt.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions" opt.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"