Merge branch 'main'
This commit is contained in:
commit
39080361ff
5
plugin/hflip.lua
Normal file
5
plugin/hflip.lua
Normal file
@ -0,0 +1,5 @@
|
||||
if not vim.g.hflip then
|
||||
local hflip = require('hflip')
|
||||
vim.api.nvim_create_user_command('HFlip', hflip.hflip, {})
|
||||
vim.g.hflip = true
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
" in plugin/hflip.vim
|
||||
if exists('g:loaded_hflip') | finish | endif " prevent loading file twice
|
||||
|
||||
let s:save_cpo = &cpo " save user coptions
|
||||
set cpo&vim " reset them to defaults
|
||||
|
||||
" command to run our plugin
|
||||
command! HFlip lua require'hflip'.hflip()
|
||||
|
||||
let &cpo = s:save_cpo " and restore after
|
||||
unlet s:save_cpo
|
||||
|
||||
let g:loaded_hflip = 1
|
Loading…
Reference in New Issue
Block a user