vim

For discussion on all things (neo)vim.
sheluchin 2019-11-30T14:29:41.495300Z

vim-salve doesn't explicitly mention shadow-cljs anywhere, but does it support it implicitly?

sheluchin 2019-12-01T14:08:09.499100Z

Ok, I can't seem to get everything working, but it's somewhat close. I can't get vim-fireplace to require my test files - it complains that they aren't on the classpath - so :RunTests doesn't work. I see that setting CLASSPATH is an available fallback for vim-classpath, but when I set that variable in my shell, some tools warn against it. Would using vim-projectionist to prepend source paths to path be a viable workaround, you think? Thanks for the help.

tpope 2019-12-01T22:48:11.499400Z

i wouldn't use $CLASSPATH for anything more than like troubleshooting

tpope 2019-12-01T22:48:53.499600Z

I don't think 'path' will help with running tests but it might help for navigation features like :A

tpope 2019-12-01T22:51:20.499800Z

does (require 'my.test) also fail in the repl? if so, how do you run your tests normally?

sheluchin 2019-12-04T12:34:57.016100Z

I'm new to Clojure - this is actually the first set of tests I'm writing. It looks like calling load-file is a common way to execute tests while developing as long as there's a call to run-tests in the file. I left a comment with a bit more info here: https://github.com/tpope/vim-fireplace/issues/369#issuecomment-561620687 Example src/test/sheluchin/poker/core_test.cljs:

(ns sheluchin.poker.core-test
  (:require
    [cljs.test :refer-macros [deftest is run-tests]]))

(deftest test-numbers
  (is (= 1 1)))

(run-tests)
Loading it prints the results to the REPL.

tpope 2019-11-30T21:23:46.495600Z

i tried to support it and gave up

tpope 2019-11-30T22:24:28.495800Z

i mean i'd welcome a contribution. i believe i got stuck trying to get the correct classpath

2019-11-30T23:03:24.496300Z

I started vim-iced advent calendar 2019 that will introduce the usage and tips for vim-iced! The first day is Getting started. https://qiita.com/advent-calendar/2019/vim-iced

đź‘Ť 9
sheluchin 2019-11-30T23:22:41.496600Z

@tpope what about when using deps.edn to manage dependencies? In that case, shadow-cljs commands gets launched via the Clojure CLI and setting :paths in deps.edn adds directories to the classpath, which can be retrieved with shadow-cljs classpath. https://shadow-cljs.github.io/docs/UsersGuide.html#deps-edn

tpope 2019-11-30T23:24:57.497600Z

it supports vanilla deps.edn. haven’t tested the hybrid