Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running vim-fugitive Gdiff causes Parinfer to run #31

Open
BerkeleyTrue opened this issue Dec 18, 2016 · 3 comments
Open

Running vim-fugitive Gdiff causes Parinfer to run #31

BerkeleyTrue opened this issue Dec 18, 2016 · 3 comments

Comments

@BerkeleyTrue
Copy link

When first opening a cljs file it looks like indentparen is run. Subsequently running :Gdiff to view the changes in the file also runs the same process on the new buffer created by fugitive rending the Gdiff function useless.

@snoe
Copy link
Member

snoe commented Feb 15, 2017

Unfortunately indentparen really has to be run or far worse things happen in files with wrong indentation. Is there a better way to tell the difference between a "real" clojure buffer and Gdiffs? There's a very good chance I'm doing something wrong in plugin.vim as I'm in no way a viml pro.

@SevereOverfl0w
Copy link
Member

Is there a way to turn off indentparen for a buffer? My mind goes to an aucmd that Parinfer triggers before running indentparen, which would give the oppurtunity to do let b:parinfer_mode='off' (assuming that parinfer mode off disables indentparen also!)

It's perhaps useful to use b:parinfer_mode too, as it would allow per-buffer settings for parinfer mode.

@SevereOverfl0w
Copy link
Member

if has('nvim') && g:parinfer_mode != "off"
it doesn't run if parinfer mode is off globally this would allow a workaround to be written. b:parinfer_mode would be a nice feature to enable this though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants