vim

For discussion on all things (neo)vim.
Tim Robinson 2021-01-22T08:26:02.002600Z

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 Sitnikov 2021-01-22T12:08:00.003600Z

@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.

dave 2021-01-22T12:58:03.004Z

@tim.j.robinson Is this the feature you have in mind? https://github.com/clojure-emacs/clj-refactor.el/wiki#magic-requires

dave 2021-01-22T12:58:41.004300Z

It looks like https://github.com/clojure-vim/clj-refactor.nvim has support for it.

Tim Robinson 2021-01-22T14:10:46.004900Z

Thanks I'll have a look at both of those

Tim Robinson 2021-01-22T15:14:23.009600Z

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.

dave 2021-01-22T16:31:02.009900Z

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

2021-01-22T16:43:24.011100Z

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

๐Ÿ‘ 1
dave 2021-01-22T16:46:42.012Z

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.

2021-01-22T22:44:06.012700Z

@ssjoleary746 that looks like a vim node bug https://github.com/clojure-vim/clj-refactor.nvim/issues/16

samoleary 2021-01-22T22:53:24.013100Z

Thanks @noisesmith :thumbsup:

dave 2021-01-22T23:06:18.013300Z

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

dave 2021-01-22T23:06:50.013500Z

Ah, looks like you got help below :)

samoleary 2021-01-22T23:18:34.013700Z

Thanks @dave. 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