This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-26
Channels
- # announcements (6)
- # babashka (29)
- # babashka-sci-dev (2)
- # beginners (129)
- # calva (9)
- # clara (16)
- # cljdoc (49)
- # clojure (125)
- # clojure-bay-area (3)
- # clojure-europe (55)
- # clojure-france (1)
- # clojuredesign-podcast (8)
- # clojurescript (85)
- # conjure (3)
- # core-logic (2)
- # cursive (1)
- # events (1)
- # honeysql (61)
- # jobs-discuss (23)
- # lsp (69)
- # malli (14)
- # nrepl (3)
- # off-topic (16)
- # portal (11)
- # re-frame (8)
- # releases (1)
- # ring (2)
- # shadow-cljs (12)
- # vim (42)
- # xtdb (18)
How do I debug/fine tune the indent rules? It seems particularly after I enabled treesitter, indents are not being handled correctly in some cases.
@dharrigan I do not. As far as Clojure is concerned, I think these are the plugins that are at play:
• neoclide/coc.nvim: coc-clojure, coc-highlight
• vim-scripts/VimClojure
• guns/vim-sexp
• liquidz/vim-iced
• liquidz/vim-iced-coc-source
• nvim-treesitter/nvim-treesitter
In my case, it looks like vim-iced is controlling indents: indentexpr=GetIcedIndent()
. Although iced itself interacts with other plugins in a way I haven't yet made sense of. Maybe it doesn't support treesitter properly?
Unable to comment really, as I don't use either. Perhaps if you go into $HOME/.vim/bundle/vim-iced.... and have a look around for that function
there are other things that will help you like :h formatprg
, :h formatexpr
, and so on
Are you sure you need vim-scripts/vimclojure? Wouldn't coc give you thinks like completion etc...?
I am not sure. I'm certain there is some overlap in my plugins but arrived at this combination through trial and error. I'll try disabling.
> vim-iced’s code formatting is powered by cljfmt. Maybe cljfmt isn't playing nicely with treesitter :thinking_face:
iced is pretty great but I think I'll have to give conjure a spin one of these days.
I've just updated the repo with my latest, which brings in telescope, which is pretty awesome.
I keep seeing telescope mentioned all over the place. It isn't redundant when using vim-fzf for search/file selection, etc.?
Do you know if it supports autocomplete the same way fzf does or if it's just based around that popup interface?
The inline autocomplete suggestions, like you have with https://github.com/dharrigan/vimconfig/blob/3d6bf1568dc1caba33367a1f4d0b63a22661f544/custom/600-mappings.vim#L41
Well, I do use both, so I use telescope for searching files and grepping and buffers
Hi, if I have a binding to clojure-lsp to transpose map entries
nnoremap <silent> crmu :call CocRequest('clojure-lsp', 'workspace/executeCommand', {'command': 'move-coll-entry-up', 'arguments': [Expand('%:p'), line('.') - 1, col('.') - 1]})<CR>
Is it possible to make that repeatable (using .
) with https://github.com/tpope/vim-repeat ?vim-repeat is a fairly basic idea - you define your mapping to include a call that maps .
to your mapping. Something like the below.
nnoremap <silent> <Plug>InitMoveColEntryUp
\ :call CocRequest('clojure-lsp', 'workspace/executeCommand', {'command': 'move-coll-entry-up', 'arguments': [Expand('%:p'), line('.') - 1, col('.') - 1]})<CR><Bar>
\ silent! call repeat#set("\<Plug>InitMoveColEntryUp")
nnoremap crmu <Plug>InitMoveColEntryUp