env: work better with sql
This commit is contained in:
parent
862ce79c1a
commit
cfb60eb797
|
@ -90,3 +90,11 @@ set -x DOTDROP_CONFIG "{{@@ _dotdrop_cfgpath @@}}"
|
||||||
set -x DOTDROP_PROFILE "{{@@ profile @@}}"
|
set -x DOTDROP_PROFILE "{{@@ profile @@}}"
|
||||||
|
|
||||||
set -x DOTDROP_WORKERS (math 2 \* (nproc))
|
set -x DOTDROP_WORKERS (math 2 \* (nproc))
|
||||||
|
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
# Source .env files
|
||||||
|
################################################################
|
||||||
|
|
||||||
|
command -qs direnv &&
|
||||||
|
direnv hook fish | source
|
||||||
|
|
|
@ -55,6 +55,10 @@ hook global BufCreate .*\.tera %[
|
||||||
add-highlighter buffer/jinja ref jinja
|
add-highlighter buffer/jinja ref jinja
|
||||||
]
|
]
|
||||||
|
|
||||||
|
hook global WinSetOption filetype=sql %[
|
||||||
|
set buffer comment_line '--'
|
||||||
|
]
|
||||||
|
|
||||||
hook global WinSetOption filetype=jsonc %[
|
hook global WinSetOption filetype=jsonc %[
|
||||||
set buffer comment_line '//'
|
set buffer comment_line '//'
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
|
||||||
|
rm ~/.local/bin/rust-analyzer
|
||||||
|
mkdir -p ~/.local/bin
|
||||||
|
curl -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-x86_64-unknown-linux-gnu.gz |
|
||||||
|
gunzip -c - > ~/.local/bin/rust-analyzer
|
||||||
|
chmod +x ~/.local/bin/rust-analyzer
|
Reference in New Issue