This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-25
Channels
- # announcements (4)
- # babashka (13)
- # beginners (115)
- # cider (62)
- # clj-kondo (16)
- # cljdoc (4)
- # cljs-dev (5)
- # clojure (44)
- # clojure-europe (57)
- # clojure-greece (1)
- # clojure-italy (2)
- # clojure-nl (3)
- # clojure-spec (2)
- # clojure-uk (24)
- # clojurescript (58)
- # code-reviews (2)
- # community-development (6)
- # conjure (3)
- # core-async (9)
- # cursive (34)
- # datahike (3)
- # datalog (1)
- # datomic (67)
- # emacs (9)
- # events (5)
- # fulcro (9)
- # graalvm (1)
- # jobs (1)
- # lsp (24)
- # off-topic (20)
- # pathom (17)
- # polylith (11)
- # re-frame (21)
- # react (21)
- # reagent (3)
- # reitit (23)
- # releases (1)
- # remote-jobs (1)
- # ring (3)
- # sci (47)
- # tools-deps (7)
- # vim (15)
- # xtdb (4)
Has anyone gotten the clojure-lsp execute_commands to work under neovim's built-in lsp?
For posterity, I did get it working. My issue was that the cursor position tuple returned by vim.api.nvim_win_get_cursor() was different than what the standard vimscript col() and line() functions give.
I got the commands to work, here's my config https://www.github.com/PaterJason/dotfiles/tree/master/dot%2Fnvim%2F.config%2Fnvim%2Flua%2Fplugins%2Flsp.lua
I haven't gotten any lsp or even good autocomplete working yet. If I use something once, it works, but only then.
otoh, I have a more concrete question about using key bindings and movements, sexp or not: Imagine you are in the middle of your code, you write a call to another namespace for a helper function or maybe you use a piece of data and now you have to add a new require. I used to just go up, copy a line, change 2 words, done. Now it seems to be much more complicated, and I wonder how other people do it, what is an easy/fast way?
Today I noticed that indentation is still broken in one of my files, but it's consistently broken, basically it resets to 0 and starts indenting from the beginning of the line as if we weren't inside deeply nested structure. I have zero idea how to debug this. Otherwise the =-
shortcut works fine, produces a nicer output than what I had before.
Do you have a code example for that behavior?
I will have to clear up the code from unrelated stuff that might contain sensitive info for work. Not sure when I will have time, but if it persists, I will definitely do it before I try anything else.
No worries, just hard to envision exactly what’s happening
By default the Clojure formatter in Vim breaks if the form is more than 100 lines. Try let g:clojure_maxlines = 200
I'm just teasing, I just fixed a 48 line function myself (finding all neighbors for an index when treating a flat array of length n*n as a modulo grid of dimension m)
I got the commands to work, here's my config https://www.github.com/PaterJason/dotfiles/tree/master/dot%2Fnvim%2F.config%2Fnvim%2Flua%2Fplugins%2Flsp.lua