liquidz / vim-iced

Clojure Interactive Development Environment for Vim8/Neovim
https://liquidz.github.io/vim-iced/
MIT License
516 stars 35 forks source link

Support for telescope.nvim #458

Closed heralden closed 1 year ago

heralden commented 1 year ago

There's a lot of useful functionality like :IcedBrowseFunction that requires ctrlp.vim, fzf or vim-clap.

How about adding support for https://github.com/nvim-telescope/telescope.nvim which is fairly popular among neovim users?

liquidz commented 1 year ago

@heralden Thank you for your suggestion!

Sounds good :) I'll implement it as a separate plugin just like vim-iced-ddu-selector. https://github.com/liquidz/vim-iced-ddu-selector

liquidz commented 1 year ago

@heralden I've made it for trial. https://github.com/liquidz/vim-iced-telescope-selector Could you try?

heralden commented 1 year ago

Wow, that was quick!

Doing :IcedBrowseFunction in a clojure buffer returns:

Fetching...
E5108: Error executing lua ...gged/telescope.nvim/lua/telescope/builtin/__internal.lua:369: Vim(return):E909: Cannot index a special variable
stack traceback:
        [C]: in function 'cmd'
        ...gged/telescope.nvim/lua/telescope/builtin/__internal.lua:369: in function 'run_replace_or_original'
        ...nvim/plugged/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
        ...e/nvim/plugged/telescope.nvim/lua/telescope/mappings.lua:350: in function 'execute_keymap'
        [string ":lua"]:1: in main chunk
Press ENTER or type command to continue
liquidz commented 1 year ago

@heralden Thanks for your confirmation!

Hmm, it works fine in my environment...

What versions are you using?

heralden commented 1 year ago

NVIM v0.8.0 with latest telescope.nvim. I actually tried it inside a long-running session and it worked. Then I relaunched nvim and I get the same error again. And then I realised I had forgotten to connect to the REPL 😄 - it works once I'm connected.

Thanks!