Refresh generated nvim config
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
if !has('nvim-0.5') || exists('g:winshift_nvim_loaded') | finish | endif
|
||||
|
||||
command! -complete=customlist,s:completion -nargs=? WinShift lua require("winshift").cmd_winshift(<f-args>)
|
||||
|
||||
function s:completion(argLead, cmdLine, curPos)
|
||||
return luaeval("require('winshift').completion("
|
||||
\ . "vim.fn.eval('a:argLead'),"
|
||||
\ . "vim.fn.eval('a:cmdLine'),"
|
||||
\ . "vim.fn.eval('a:curPos'))")
|
||||
endfunction
|
||||
|
||||
augroup WinShift
|
||||
au!
|
||||
au ColorScheme * lua require("winshift.colors").setup()
|
||||
augroup END
|
||||
|
||||
let g:winshift_nvim_loaded = 1
|
||||
Reference in New Issue
Block a user