set undodir back to default
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
vim.cmd "let g:netrw_liststyle = 3"
|
vim.cmd('let g:netrw_liststyle = 3')
|
||||||
|
|
||||||
local opt = vim.opt
|
local opt = vim.opt
|
||||||
|
|
||||||
@@ -29,43 +29,43 @@ opt.scrolloff = 999
|
|||||||
-- search
|
-- search
|
||||||
opt.ignorecase = true
|
opt.ignorecase = true
|
||||||
opt.smartcase = true
|
opt.smartcase = true
|
||||||
opt.iskeyword:append "-" -- consider string-string as a whole word
|
opt.iskeyword:append('-') -- consider string-string as a whole word
|
||||||
|
|
||||||
-- cursor line
|
-- cursor line
|
||||||
opt.cursorline = true
|
opt.cursorline = true
|
||||||
|
|
||||||
-- appearance
|
-- appearance
|
||||||
opt.termguicolors = true
|
opt.termguicolors = true
|
||||||
opt.background = "dark"
|
opt.background = 'dark'
|
||||||
opt.signcolumn = "yes"
|
opt.signcolumn = 'yes'
|
||||||
opt.colorcolumn = "80"
|
opt.colorcolumn = '80'
|
||||||
vim.diagnostic.config {
|
vim.diagnostic.config({
|
||||||
float = {
|
float = {
|
||||||
border = "rounded",
|
border = 'rounded',
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
|
|
||||||
-- virtualedit
|
-- virtualedit
|
||||||
opt.virtualedit = "block"
|
opt.virtualedit = 'block'
|
||||||
|
|
||||||
-- backspace
|
-- backspace
|
||||||
opt.backspace = "indent,eol,start"
|
opt.backspace = 'indent,eol,start'
|
||||||
|
|
||||||
-- clipboard
|
-- clipboard
|
||||||
opt.clipboard:append "unnamedplus" -- use system clipboard as the default register
|
opt.clipboard:append('unnamedplus') -- use system clipboard as the default register
|
||||||
|
|
||||||
-- split windows
|
-- split windows
|
||||||
opt.splitright = true
|
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
|
-- folding
|
||||||
opt.foldlevel = 20
|
opt.foldlevel = 20
|
||||||
opt.foldmethod = "expr"
|
opt.foldmethod = 'expr'
|
||||||
opt.foldexpr = "nvim_treesitter#foldexpr()"
|
opt.foldexpr = 'nvim_treesitter#foldexpr()'
|
||||||
|
|
||||||
-- session management
|
-- 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'
|
||||||
Reference in New Issue
Block a user