nvim: Use nvim_command for disabling back ups and swap
Using the vim.o API seems to have no effect for these three options. Set them via the 'nvim_command' API.
This commit is contained in:
parent
ee6af66c8a
commit
be594ae121
1 changed files with 4 additions and 3 deletions
|
@ -17,9 +17,6 @@ vim.o.joinspaces = false
|
|||
vim.o.showmode = false
|
||||
vim.o.splitbelow = true
|
||||
vim.o.splitright = true
|
||||
vim.o.backup = false
|
||||
vim.o.writebackup = false
|
||||
vim.o.swapfile = false
|
||||
vim.o.foldenable = false
|
||||
vim.o.undofile = true
|
||||
vim.o.hidden = true
|
||||
|
@ -96,6 +93,10 @@ vim.api.nvim_command('set backspace=indent,eol,start')
|
|||
vim.api.nvim_command('set diffopt=filler,internal,algorithm:histogram,indent-heuristic')
|
||||
-- Load out custom colorscheme
|
||||
vim.api.nvim_command('colorscheme yolokai')
|
||||
-- Do not create any backups or swap file
|
||||
vim.api.nvim_command('set nobackup')
|
||||
vim.api.nvim_command('set nowritebackup')
|
||||
vim.api.nvim_command('set noswapfile')
|
||||
|
||||
require 'plugins'
|
||||
require 'autocmd'
|
||||
|
|
Loading…
Reference in a new issue