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

add option to disable setting include #65

Open
cdepillabout opened this issue Apr 19, 2019 · 0 comments
Open

add option to disable setting include #65

cdepillabout opened this issue Apr 19, 2019 · 0 comments

Comments

@cdepillabout
Copy link
Member

It would be nice to add an option to disable setting include:

setlocal include=^import
setlocal includeexpr=printf('%s.purs',substitute(v:fname,'\\.','/','g'))

Setting include causes keyword completion to take a very long time to finish. Keyword completion is triggered with Ctrl-P or Ctrl-N in insert mode. There doesn't appear to be any caching of files processed for keyword completion, so it basically becomes unusable when there are multiple imports in a PS file.

As a workaround, it is possible to disable keyword completion from included files with a line like the following:

autocmd FileType purescript setlocal complete=.,w,b,u,t

Here is the documentation for the complete option:

http://vimdoc.sourceforge.net/htmldoc/options.html#'complete'

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

No branches or pull requests

1 participant