cohama / lexima.vim

Auto close parentheses and repeat by dot dot dot...
996 stars 46 forks source link

Allow this plugin to be disabled per buffer #20

Closed cpixl closed 8 years ago

cpixl commented 8 years ago

First of all... thank you! This plugin is impressive and I found it a lot more flexible/powerful than the any of the alternatives... really, thank you for the effort :)

As this plugin conflicts with some features of paredit.vim (it provides superpowered bindings for brackets/square brackets/parens for LISP dialects), maybe it would be better to allow this plugin to be disabled per buffer, e.g.:

autocmd FileType clojure let b:lexima_enabled=0

So we can use each one where it fits better.

cohama commented 8 years ago

It's a nice idea! I will try.

cohama commented 8 years ago

I have implemented b:lexima_disabled. You can use this as following

autocmd FileType clojure let b:lexima_disabled=1

Because your motivavtion is 'want to disable lexima', setting b:lexima_disabled=1 is natural.

cpixl commented 8 years ago

Thank you! :D