This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-22
Channels
- # announcements (28)
- # babashka (77)
- # beginners (122)
- # calva (40)
- # circleci (3)
- # clj-kondo (47)
- # cljs-dev (9)
- # clojure (119)
- # clojure-australia (1)
- # clojure-europe (88)
- # clojure-nl (3)
- # clojure-uk (33)
- # code-reviews (64)
- # core-logic (37)
- # cursive (10)
- # datomic (13)
- # emacs (1)
- # fulcro (4)
- # graalvm (1)
- # graphql (5)
- # helix (4)
- # integrant (25)
- # jobs (1)
- # jobs-rus (1)
- # off-topic (3)
- # pathom (12)
- # random (1)
- # re-frame (48)
- # reagent (1)
- # remote-jobs (1)
- # reveal (1)
- # rewrite-clj (4)
- # ring (6)
- # ring-swagger (1)
- # shadow-cljs (21)
- # sql (8)
- # tools-deps (25)
- # vim (15)
- # xtdb (12)
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 require
s?
@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.
@tim.j.robinson Is this the feature you have in mind? https://github.com/clojure-emacs/clj-refactor.el/wiki#magic-requires
It looks like https://github.com/clojure-vim/clj-refactor.nvim has support for it.
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?
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
Thanks I'll have a look at both of those
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.
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
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.
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?
@ssjoleary746 that looks like a vim node bug https://github.com/clojure-vim/clj-refactor.nvim/issues/16
Thanks @noisesmith :thumbsup: