Updates
b2292dbc6caf2619092d2ef61609fcd310794350
1 parent
da15803b
.vimrc
+1 -1
| 328 | 328 | " |
|
| 329 | 329 | " LSP |
|
| 330 | 330 | " |
|
| 331 | 331 | if has("nvim") |
|
| 332 | 332 | let g:LanguageClient_serverCommands = { |
|
| 333 | - | \ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'], |
|
| 333 | + | \ 'rust': ['env', 'CARGO_TARGET_DIR=./target', '~/.cargo/bin/rustup', 'run', 'stable', 'rls'], |
|
| 334 | 334 | \ 'cpp': ['clangd'], |
|
| 335 | 335 | \ } |
|
| 336 | 336 | endif |
|
| 337 | 337 | ||
| 338 | 338 | function! RunLanguageClient() |
bin/xmobar-brightness
+5 -3
| 2 | 2 | ||
| 3 | 3 | max=$(cat ~/settings/max-brightness) |
|
| 4 | 4 | actual=$(cat ~/settings/actual-brightness) |
|
| 5 | 5 | ratio=$(($actual * 100 / $max)) |
|
| 6 | 6 | ||
| 7 | - | printf "$(($ratio))" |
|
| 8 | - | ||
| 9 | - | ||
| 7 | + | if [ $actual == 0 ]; then |
|
| 8 | + | printf "" |
|
| 9 | + | else |
|
| 10 | + | printf "$(($ratio))" |
|
| 11 | + | fi |