Fork me on GitHub
#vim
<
2019-11-07
>
Olical12:11:43

Conjure v2.1.0 is out with support for evaluating a form at any given Neovim mark! https://asciinema.org/a/279763 This means you can evaluate things from other parts of your buffer while you work elsewhere, or even in different files and namespaces! https://github.com/Olical/conjure - intro guide https://oli.me.uk/getting-started-with-clojure-neovim-and-conjure-in-minutes/ > x-post from #announcements

lxsli14:11:47

oh damn that's sweet

Stefan08:11:20

Thatโ€™s an awesome feature!

dave15:11:07

i'm super stoked about this feature. i think it could be a game changer

dave15:11:21

while we're talking about marks, i've been using https://github.com/kshenoy/vim-signature lately and finding it indispensible

๐Ÿ˜Ž 4
dave15:11:38

it's really handy being able to see where my marks are

dave15:11:42

it also provides some very useful bindings for dealing with marks, like like m, to place the next available mark, so you don't have to think about what marks you've placed already

dominicm15:11:34

I used that for a long while. It didn't survive a rewrite of my vimrc, because I don't use marks often enough.

dave15:11:15

i keep forgetting that marks are a thing ๐Ÿ˜„

dave15:11:51

i'm so used to just remembering what buffers things are in and using / to search for the place i want to go

dave15:11:11

or jumping to definitions via vim-fzf's :Tags

dave15:11:40

marks are occasionally very handy though, for those situations where you're jumping back and forth between implementation and usage

Jan K16:11:51

I use vim-cljfmt often and sadly it wipes away marks when reformatting ๐Ÿ˜ž

๐Ÿ˜ฒ 4
๐Ÿ˜ข 4
dominicm17:11:44

That's terrible!

Jan K17:11:15

Yeah it's not great. Since reformatting can collapse lines, even if it kept marks they might point to a different place after a reformat, unless there was some magic. Even so I prefer on-demand reformatting to parinfer.

dominicm17:11:08

Marks track movements. They aren't pinned to a particular line number.

dominicm17:11:27

I wonder if the nvim api resolves some of that.

Jan K17:11:36

(vim-)cljfmt formats the whole file at once, it clears the buffer and puts the formatted version in place, so vim can't map the marks

dominicm17:11:30

Seems like it could easily do a line by line comparison. Only set the new stuff.

Jan K17:11:25

Maybe, I would use that kind of a plugin ๐Ÿ™‚