[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Vim helper config for Guix
From: |
Efraim Flashner |
Subject: |
Vim helper config for Guix |
Date: |
Thu, 4 Apr 2024 09:43:02 +0300 |
I've been meaning to upstream my guix.git specific vimrc config file,
like the .dir-locals.el in the repo. It is architected so that it also
works in git worktrees.
jump-to-definition works with C+]
If you have guix.vim installed then :Guix defaults to using
./pre-inst-env guix from that worktree.
opening new files ignores the .go files when tab completing
Most of the line indentation works pretty well. Vim, by default for lisp
languages, hardcodes an indent as 2 spaces, and I haven't gotten around
to learning how to write an indentexpr to make it work for guix. As a
result some of the indentation is close but not quite correct, and there
are some cases where the indentation is straight up ignored. I think
that's the case inside g-expressions, but I don't remember.
I've also included a link to my vimrc¹ if anyone wants to see what I
have there.
¹ https://git.sr.ht/~efraim/guix-config/tree/master/item/vim
--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
vimrc.guix
Description: Text document
signature.asc
Description: PGP signature
- Vim helper config for Guix,
Efraim Flashner <=