cohama / lexima.vim

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

doesn't work on buftype=nofile #80

Closed aiya000 closed 2 years ago

aiya000 commented 5 years ago

Hi :D
I'm a lexima.vim user! Thanks!

I found a problem, that can be reproduced by ๐Ÿ‘‡

$ vim
:set buftype=nofile

and input [
but no ] followed x(
cohama commented 5 years ago

lexima is force disabled when nofile opened because many of plugins usenofile and will conflict plugin built-in mappings.

aiya000 commented 5 years ago

Oh, I understood :D ๐Ÿ‘๏ธ

Is lexima.vim exposing a function to force enable on nofile? (I searched the function, but I couldn't found, sorry. I want to use on nofile๐Ÿ˜ฃ)

cohama commented 2 years ago

From v2.1, lexima.vim also works on buftype=nofile by default.

cohama commented 2 years ago

I added new option g:lexima_disable_on_nofile. When set as 1, lexima.vim will be disabled on buftype=nofile (same as previous version). If you want to disable lexima.vim on certain plugin buffer, you can use b:lexima_disabled.

autocmd FileType my-favorite-plugin-filetype let b:lexima_disabled = 1