nvim: init: Use lua style code for sneak settings

This commit is contained in:
Sanchayan Maity 2021-05-12 18:38:59 +05:30
parent c768cd89f1
commit d2889ad053

View file

@ -92,12 +92,11 @@ vim.g.rainbow_active = 1
-- Needs to be set before nvim-peekup
vim.g.peekup_paste_before = '<Leader>P'
vim.g.peekup_paste_after = '<Leader>p'
-- Settings using nvim.api
-- Needs to be set before vim-sneak is loaded
vim.api.nvim_command('let g:sneak#label = 1')
vim.api.nvim_command('let g:sneak#s_next = 1')
vim.api.nvim_command('let g:sneak#use_ic_scs = 0')
vim.g['sneak#label'] = 1
vim.g['sneak#s_next'] = 1
vim.g['sneak#use_ic_scs'] = 0
-- We do this to prevent the loading of the system fzf.vim plugin. This is
-- present at least on Arch/Manjaro
vim.api.nvim_command('set rtp-=/usr/share/vim/vimfiles')