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

hoisting broken ... Function unknown: DeHoistThis #175

Open
dev-kxmn opened this issue Jan 21, 2021 · 5 comments
Open

hoisting broken ... Function unknown: DeHoistThis #175

dev-kxmn opened this issue Jan 21, 2021 · 5 comments

Comments

@dev-kxmn
Copy link

I sourced by hand in my configuration all the .vim files, I can work with vim outliner except for some mappings...
I did some unpratical workaround, since I couldn't use it with NeoVim + Plug

@dev-kxmn dev-kxmn changed the title NeoVim + Plug compatible NeoVim + Plug incompatible Jan 21, 2021
@mcepl
Copy link
Member

mcepl commented Jan 21, 2021

“I couldn't use it with NeoVim + Plug”

Care to elaborate? vimoutliner works for me quite well with neovim and natural package management (i.e., each plugin is a git submodule of ~/.vim git repo, but it should be functional equivalent of any vim plugin package manager).

@dev-kxmn
Copy link
Author

In simple steps...

  • Added to Plug and ran "PlugUpdate"
  • Opened ~/.config/nvim/lib/plugins/vimoutliner/TODO.otl
  • Checked set filetype and was empty filetype=
  • Checked set syntax and was empty too syntax=
  • Tried \cb and no checkbox was added

At first I thought it was incompatible, but I sourced the vim files from ftplugin, syntax etc. in my init.vim. Worked in parts... so I think it is something with paths. I found it very useful (migrated my Dynalist project to an otl file) but some parts doesn't works...
Example: hoisting not works correctly. When hoisting the parent and siblings before appears as NonText (as if it was concealed), but siblings and itens after keep visible with annoying "~" start. If I try dehoisting the function called is not found.

@mcepl
Copy link
Member

mcepl commented Jan 22, 2021

Please, check that:

  1. ~/.config/nvim/lib/plugins/vimoutliner is in :set rtp
  2. Does anything change after running :runtime! ftdetect/votl.vim | e! ~/.config/nvim/lib/plugins/vimoutliner/TODO.otl?

@dev-kxmn
Copy link
Author

dev-kxmn commented Jan 22, 2021

Sorry,

I created a clean user in my system and set up a completely clean nvim environment. It worked ok.
I went back my user and disabled all plugins... and it worked ok
So I reenable each plugin and found only one that, when enabled, make it stopped, and it was sheerun/vim-polyglot I disabled that and, if I need some language support I go install each custom package separately...

The hoisting is only enabling authough: <Leader>h works, but <Leader>H I receive E117: Function unknown: DeHoistThis. But If I call :silent! call DeHoistAll() it works.

@mcepl mcepl changed the title NeoVim + Plug incompatible hoisting broken ... Function unknown: DeHoistThis Jan 22, 2021
@mcepl
Copy link
Member

mcepl commented Jan 22, 2021

Patches welcome. I am a bit overwhelmed with RL at the moment.

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

2 participants