direnv: add add_extra_vimrc hook [skip ci]
* also provide .vimrc-example, it would be picked up when renamed to plain .vimrc * also add .vimrc to .gitignore as there this .vimrc is supposed to have personal editor configurations (it doesn't have to but I am not going to impose editor configs on anyone, hence if anyone uses it, it's personal)
This commit is contained in:
parent
2e7d3cf1b1
commit
cb391e3851
4
.envrc
4
.envrc
@ -1 +1,5 @@
|
||||
use flake
|
||||
|
||||
# ref: https://github.com/direnv/direnv/wiki/Vim
|
||||
# comment out if not planning to use this
|
||||
add_extra_vimrc
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
.direnv
|
||||
result
|
||||
result-*
|
||||
.vimrc
|
||||
|
4
.vimrc-example
Normal file
4
.vimrc-example
Normal file
@ -0,0 +1,4 @@
|
||||
augroup vimgo_local
|
||||
au!
|
||||
au FileType go nmap <leader>gr :term ++hidden ++open nixGL go run -v .<cr>
|
||||
augroup END
|
Loading…
Reference in New Issue
Block a user