Skip to content

Commit

Permalink
feat: set global flag g:neoformat (#378)
Browse files Browse the repository at this point in the history
![image](https://user-images.githubusercontent.com/19513289/138547974-558764e1-dfab-45b5-a49f-93e55aa53304.png)

## Motivation

I saw some plugin set the flag to let user the plugin is existed or loaded, for me is check is loaded. But now I can only check it is exists via `has_key(plugs, {plug_name})`.
  • Loading branch information
2nthony authored Oct 23, 2021
1 parent 63c50a7 commit 27cc8b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/neoformat.vim
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
" Set global flag to allow checking in custom user config
let g:neoformat = 1

function! neoformat#Neoformat(bang, user_input, start_line, end_line) abort
let view = winsaveview()
let search = @/
Expand Down

0 comments on commit 27cc8b0

Please sign in to comment.