This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-01
Channels
- # announcements (7)
- # babashka (72)
- # beginners (62)
- # biff (1)
- # calva (9)
- # cider (8)
- # clj-kondo (35)
- # clj-otel (8)
- # cljsrn (11)
- # clojure (98)
- # clojure-europe (25)
- # clojure-germany (1)
- # clojure-norway (9)
- # clojure-uk (2)
- # clojured (3)
- # clojurescript (12)
- # conjure (3)
- # core-logic (4)
- # cursive (18)
- # datalevin (9)
- # datomic (5)
- # defnpodcast (2)
- # exercism (1)
- # graalvm (5)
- # gratitude (6)
- # hyperfiddle (3)
- # interop (12)
- # jobs (1)
- # joyride (34)
- # lsp (22)
- # meander (14)
- # missionary (16)
- # nbb (88)
- # off-topic (4)
- # pathom (20)
- # podcasts-discuss (1)
- # polylith (13)
- # portal (10)
- # re-frame (6)
- # releases (2)
- # remote-jobs (2)
- # rewrite-clj (3)
- # shadow-cljs (3)
- # spacemacs (6)
- # vim (24)
Installed https://github.com/neoclide/coc.nvim, the clojure-lsp server and using https://github.com/snoe/dotfiles/blob/master/home/.vimrc. Impressive so far, will keep digging :) 🤞
Also, if you want it, this is my vimconfig (that uses coc and coc-clojure and conjure)
Is this a replacement for the list of shortcuts I have in my .vimrc? E.g., I currently have an explicit: `nnoremap <silent> crcn :call CocRequest('clojure-lsp', 'workspace/executeCommand', {'command': 'clean-ns', 'arguments': [Expand('%:p'), line('.') - 1, col('.') - 1]})<CR> ` to clean namespaces. If I install coc-clojure I should then remove them? Or is the plugin doing something else as well?
Hey there! Missed this. you could remove those and rely on the commands that coc-clojure automatically creates, providing your own prefix in CocConfig with “clojure.keymaps.shortcut”: “cr”
has anybody experienced slowness when inserting a new line? especially when the file is large. I’m editing a 2000 lines file and when I insert a new line, it has a 7 seconds delay…
I’m using neovim 7.0
this seems work for me: filetype plugin indent off
let g:clojure_maxlines = 100
should works 🙂
Looks like it's trying to consider the entirety of the file when determining indentation, which causes the slowdown
Aha! It turns out that I set it to let g:clojure_maxlines = 0
back in 2017 for some reason that I don't remember. Maybe I didn't have to deal with large Clojure files at that time.
I just removed that line and it's much faster now. I read that the default value is 300 lines, which seems like a good default.
yea it seems
If you are adding a new line inside some form, it needs to parse the current form to find the correct indentation. There normally shouldn't be a need the whole file. The option will stop the parsing if you have e.g. 500 line map form.
well, then it’s weird, I got the worst performance when I add a blank new line