set undodir and move netrw settings to core
This commit is contained in:
parent
da3c46dfec
commit
981f915dc8
|
|
@ -18,8 +18,3 @@ autocmd({ "BufWritePre" }, {
|
||||||
pattern = "*",
|
pattern = "*",
|
||||||
command = [[%s/\s\+$//e]],
|
command = [[%s/\s\+$//e]],
|
||||||
})
|
})
|
||||||
|
|
||||||
-- netrw settings
|
|
||||||
vim.g.netrw_browse_split = 0
|
|
||||||
vim.g.netrw_banner = 0
|
|
||||||
vim.g.netrw_winsize = 25
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,15 @@ opt.shortmess:append "sI"
|
||||||
opt.signcolumn = "yes"
|
opt.signcolumn = "yes"
|
||||||
opt.termguicolors = true
|
opt.termguicolors = true
|
||||||
opt.timeoutlen = 400
|
opt.timeoutlen = 400
|
||||||
|
|
||||||
|
opt.swapfile = false
|
||||||
|
opt.undodir = vim.fn.expand('~/.local/share/nvim/undodir')
|
||||||
opt.undofile = true
|
opt.undofile = true
|
||||||
|
|
||||||
|
-- netrw settings
|
||||||
|
vim.g.netrw_browse_split = 0
|
||||||
|
vim.g.netrw_banner = 0
|
||||||
|
vim.g.netrw_winsize = 25
|
||||||
|
|
||||||
-- interval for writing swap file to disk, also used by gitsigns
|
-- interval for writing swap file to disk, also used by gitsigns
|
||||||
opt.updatetime = 250
|
opt.updatetime = 250
|
||||||
|
|
|
||||||
Reference in New Issue