This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-11
Channels
- # announcements (6)
- # babashka (61)
- # beginners (85)
- # calva (21)
- # cider (6)
- # clara (9)
- # clj-http (1)
- # clj-kondo (35)
- # cljfx (6)
- # clojure (91)
- # clojure-australia (11)
- # clojure-europe (23)
- # clojure-italy (7)
- # clojure-losangeles (2)
- # clojure-nl (27)
- # clojure-uk (107)
- # clojurescript (4)
- # community-development (1)
- # cursive (69)
- # emacs (12)
- # fulcro (29)
- # graalvm (25)
- # honeysql (10)
- # hugsql (3)
- # integrant (13)
- # jobs (4)
- # kaocha (3)
- # keechma (1)
- # lambdaisland (3)
- # leiningen (2)
- # meander (17)
- # mount (3)
- # observability (1)
- # off-topic (86)
- # pathom (3)
- # polylith (2)
- # practicalli (14)
- # reitit (14)
- # shadow-cljs (61)
- # startup-in-a-month (1)
- # tools-deps (9)
- # vim (54)
- # xtdb (16)
A question for people who use a non-QWERTY layout (dvorak or even french or german AZERTY, QWERTZ layouts) with vim: Does vim use the positions on the keyboard for the various commands, e.g. to record a macro, do you press the left-most key on the top row (usually Q but sometimes A)?
I don't use alternative layout but remember watching this video https://www.youtube.com/watch?v=xlqDCY05Hpk TLDR vim uses letters not position of a key
I use Dvorak. Vim does not use the positions of the keys, but rather the keys' "values" if you will. I still press Q to record a macro, HJKL to move around, etc. They are just in a different position in my keyboard layout than they are in a QWERTY layout.
It uses the values, and that’s actually a big part of the reason I chose to use colemak instead of some of the others: hkjl are still on one hand, and qwazxcvb don’t move
in theory you could make a plugin that remapped normal mode based on keyboard layout
oh yeah people have definitely done this before https://vim.fandom.com/wiki/Using_Vim_with_the_Dvorak_keyboard_layout
There’s some mention in the docs about this, that I can’t find any more — basically for layouts such as greek where insert mode works fine but normal mode is completely broken you can remap greek characters to latin so you can send commands in normal mode too.
My take on this is that I actually prefer going off of the values and not the position, because Vim's mappings are so mnemonic, e.g. I wouldn't want "delete around word" (daw) to be "eap"
I don't mind HJKL not being right next to each other. My fingers have memorized where those keys are in Dvorak.
that’s like playing games on colemak 🙂 WASD is in the same orientation… just spread out.
WASD is a nightmare in Dvorak! 😄 If I ever have to play a game that uses WASD as the arrow keys, I just switch to QWERTY.
Funny to think that if Vim used something other than HJKL for movement, I probably would be less inclined to use Vim because HJKL just happens to work fine in Dvorak!
Or maybe it would be an incentive for me to use HJKL less, since over-reliance on HJKL is an antipattern :thinking_face:
(I’m trying to figure out proper support for keyboard in my experimental UI and the documentation is hard to parse)
Anyone here using clojure-lsp with a completion engine? Currently trying to setup nvim lsp and clojure lsp and got some code completion but code any :require'd packages dont seem to be caught by the lsp
I'm curious to try the built-in Neovim LSP client at some point in the future, but I rely so heavily on CoC, I'm not optimistic that the Neovim one is usable for me yet.
I imagine it'll take some time before adoption picks up and it becomes as usable as CoC is now.
oh the topic of Coc, there are so many mappings you have to copy in. What do you find you guys tend to use? I mostly just like the auto complete with the arg list, and gd
, basically nothing else
I have a ton of custom CoC config: https://github.com/daveyarwood/dotfiles/blob/24387891fe1ae89713bac9f272207b06af571434/vim/custom/500-plugins-config.vim#L154-L305 Most of it I stole from @eraserhd’s config and I have no idea what it does 😄
I was just about to ask how did you learn how to configure CoC - it’s a massive beast with documentation I can’t parse.
@U0AHJUHJN So you use CoC and deoplete at the same time? I’m so confused. I thought they did the same thing, with CoC also providing LSP integration.
cool. Thank you. That’s pretty intense
a lot of the same idea as me. That reminds me the problem I had with the CoC defaults: They map a lot after space, but space is my leader, so there are a lot of collisions. Now they are behind leader>c…
https://github.com/daveyarwood/dotfiles/blob/24387891fe1ae89713bac9f272207b06af571434/vim/custom/500-plugins-config.vim#L620 inaccurate comment 🙂 I also used similar mappings for FZF https://github.com/Grazfather/dotfiles/blob/master/vimrc#L289
No, I just use COC, no Deoplete. I haven't bothered to clean up my old Deoplete config :)
Or was it @snoe’s config? I forget. I just remember that it was either the author of parinfer-rust's or the author of clojure-lsp's :thinking_face:
Not as plug and play as coc and some breaking changes in updates but really enjoying the experience with js, ts and java
I need a name for my NeoVim GUI. It’s written entirely in CLJ/CLJS and it’s meant to be a hackable thing… at least for me 🙂 Any suggestions?
Vimacs
Thought of a name! Thanks all, stay tuned for some announcement in a month or so 😛
It’s here, a NeoVim GUI in the browser, written in Clojure/Script: https://github.com/orestis/brim — only a few days worth of hacking but it’s usable (turns out, not as fast as a proper GUI or the terminal, but fast enough to be used to continue development). If you’re curious to see how the NeoVim RPC API for GUIs works, take a look inside 🎉
In case you jumped on this I just pushed a few updates to the README and some REPL fix :)
small typo in the readme / intro: > And things will break, see the for what’s left to be done.
probably meant to be something like "see the faq for what's left to be done" or changelog, or whatever
oh, there's a TODO file :D
Aah thanks for flagging , I will try and push some changes and updates over the next few days. Got some better grasp of keyboard handling now, plus need to fix emoji rendering which crashes the server 💥
I haven’t used asciidoc before so it was a broken link. Anyway I’ve pushed a much improved keyboard support and fixed emojis. However it seems that NeoVim is barfing on composing emojis, that’s a shame.
I’m so happy right now, after a few false starts my DOM code is virtually lag-free. Same performance as typing into VimR or even (gasp) the terminal. Modern browsers can be quite fast 🙂
It’s here, a NeoVim GUI in the browser, written in Clojure/Script: https://github.com/orestis/brim — only a few days worth of hacking but it’s usable (turns out, not as fast as a proper GUI or the terminal, but fast enough to be used to continue development). If you’re curious to see how the NeoVim RPC API for GUIs works, take a look inside 🎉