env: work better with sql

This commit is contained in:
lelgenio 2022-02-03 23:10:20 -03:00
parent 862ce79c1a
commit cfb60eb797
3 changed files with 20 additions and 0 deletions

View File

@ -90,3 +90,11 @@ set -x DOTDROP_CONFIG "{{@@ _dotdrop_cfgpath @@}}"
set -x DOTDROP_PROFILE "{{@@ profile @@}}"
set -x DOTDROP_WORKERS (math 2 \* (nproc))
################################################################
# Source .env files
################################################################
command -qs direnv &&
direnv hook fish | source

View File

@ -55,6 +55,10 @@ hook global BufCreate .*\.tera %[
add-highlighter buffer/jinja ref jinja
]
hook global WinSetOption filetype=sql %[
set buffer comment_line '--'
]
hook global WinSetOption filetype=jsonc %[
set buffer comment_line '//'

8
dotfiles/scripts/_install-ra Executable file
View File

@ -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