Fork me on GitHub
#vim
<
2021-01-22
>
Tim Robinson08:01:02

I'm up and running with vim and fireplace, but the thing I miss most about my old IDE is it can guess what import statements I need. is there any plugin that can help with this for clojure requires?

Timofey Sitnikov12:01:00

@tim.j.robinson, I am not sure what feature you had in the old IDE, but https://github.com/neoclide/coc-tabnine does guess for you. To use it, https://github.com/neoclide/coc.nvim plugin is required.

samoleary22:01:43

Curiosity got the better of me so I've tried to give this plugin a go but I've hit a bit of a wall: E492: Not an editor command: CCleanNS That error shows up for all commands offered by clj-refactor.nvim. I'm using neovim v0.4.4 with the node.js provider installed and latest fireplace, and I'm starting a REPL with vim-jack-in so i think that should cover cider-nrepl and refactor-nrepl . Not too sure where to begin debugging this one, any advice?

dave23:01:18

I'm not sure, off-hand. I used clj-refactor just briefly, years ago.

dave23:01:50

Ah, looks like you got help below :)

samoleary23:01:34

Thanks @U0AHJUHJN. Yeah, got a good pointer to a github issue so I'm trying to figure out where the node-host directory is and seeing if I can change it's version

Tim Robinson14:01:46

Thanks I'll have a look at both of those

Tim Robinson15:01:23

In Visual Studio or VS Code with C# or JavaScript if I type the name of a class, a menu appears offering to automatically reference the namespace for that class (the equivalent of a require+refer), or I can paste in a block, it will offer to include all namespaces. I think clj-refactor.nvim is the closest but I'm not currently using nvim, so it'll have to wait until I'm in "fiddle with my toolset" mode rather than the "get on with coding" mode.

dave16:01:02

For what it's worth, I found switching from Vim to Neovim 100% painless.

Aleksander16:01:24

My recent realisation is that while (Neo)Vim can be Development Environment, it’s missing the Integrated bit - it does require a lot of configuration and fiddling

👍 3
dave16:01:42

I totally agree. You can transform (Neo)Vim into an IDE by installing and configuring plugins that provide the specific functionality you want, but it doesn't come that way out of the box.

samoleary22:01:43

Curiosity got the better of me so I've tried to give this plugin a go but I've hit a bit of a wall: E492: Not an editor command: CCleanNS That error shows up for all commands offered by clj-refactor.nvim. I'm using neovim v0.4.4 with the node.js provider installed and latest fireplace, and I'm starting a REPL with vim-jack-in so i think that should cover cider-nrepl and refactor-nrepl . Not too sure where to begin debugging this one, any advice?