Compare commits
No commits in common. "bec66b58a79e3d0e9c789fa32df72226f2979d65" and "bcaeb2ac303fbe90f8ea130679a3535eb3f3fa8c" have entirely different histories.
bec66b58a7
...
bcaeb2ac30
@ -10,7 +10,7 @@ const simplifiedHead = [
|
||||
{
|
||||
async: true,
|
||||
src: 'https://umami.phundrak.com/script.js',
|
||||
'data-website-id': '9574ed51-3939-4d4e-979f-6b2908fbe1af',
|
||||
'data-website-id': '67166941-8c83-4a19-bc8c-139e44b7f7aa',
|
||||
'data-do-not-track': 'true',
|
||||
},
|
||||
],
|
||||
|
@ -21,8 +21,7 @@ variables to install grammars for different languages.
|
||||
css-ts-mode yaml-ts-mode) . lsp-deferred)
|
||||
:init
|
||||
(setq treesit-language-source-alist
|
||||
'((astro "https://github.com/virchau13/tree-sitter-astro")
|
||||
(bash "https://github.com/tree-sitter/tree-sitter-bash")
|
||||
'((bash "https://github.com/tree-sitter/tree-sitter-bash")
|
||||
(c "https://github.com/tree-sitter/tree-sitter-c")
|
||||
(cmake "https://github.com/uyha/tree-sitter-cmake")
|
||||
(common-lisp "https://github.com/theHamsta/tree-sitter-commonlisp")
|
||||
@ -33,7 +32,7 @@ variables to install grammars for different languages.
|
||||
(go "https://github.com/tree-sitter/tree-sitter-go")
|
||||
(go-mod "https://github.com/camdencheek/tree-sitter-go-mod")
|
||||
(html "https://github.com/tree-sitter/tree-sitter-html")
|
||||
(js ("https://github.com/tree-sitter/tree-sitter-javascript" "master" "src"))
|
||||
(js . ("https://github.com/tree-sitter/tree-sitter-javascript" "master" "src"))
|
||||
(json "https://github.com/tree-sitter/tree-sitter-json")
|
||||
(lua "https://github.com/Azganoth/tree-sitter-lua")
|
||||
(make "https://github.com/alemuller/tree-sitter-make")
|
||||
@ -42,8 +41,8 @@ variables to install grammars for different languages.
|
||||
(r "https://github.com/r-lib/tree-sitter-r")
|
||||
(rust "https://github.com/tree-sitter/tree-sitter-rust")
|
||||
(toml "https://github.com/tree-sitter/tree-sitter-toml")
|
||||
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")
|
||||
(typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")
|
||||
(tsx . ("https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src"))
|
||||
(typescript . ("https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src"))
|
||||
(yaml "https://github.com/ikatyang/tree-sitter-yaml"))))
|
||||
#+end_src
|
||||
|
||||
@ -1446,15 +1445,6 @@ Auto-completion for ~emmet-mode~, ~html-mode~, and ~web-mode~.
|
||||
:after (emmet-mode web-mode))
|
||||
#+end_src
|
||||
|
||||
**** Astro
|
||||
#+begin_src emacs-lisp
|
||||
(use-package astro-ts-mode
|
||||
:straight (:build t)
|
||||
:defer t
|
||||
:init
|
||||
(mapc #'treesit-install-language-grammar '(astro css tsx)))
|
||||
#+end_src
|
||||
|
||||
**** CSS
|
||||
Let’s customize a bit the built-in CSS mode.
|
||||
#+begin_src emacs-lisp
|
||||
|
@ -45,12 +45,6 @@ I also use [[https://github.com/elkowar/eww/][eww]] for some widgets, let’s lo
|
||||
eww shell-completions --shell fish | source
|
||||
#+end_src
|
||||
|
||||
The [[https://crates.io/crates/sqlx][sqlx]] CLI is a requirement for my Rust projects using this crate.
|
||||
The code below integrates its completions in Fish.
|
||||
#+begin_src fish
|
||||
sqlx completions fish | source
|
||||
#+end_src
|
||||
|
||||
Since I don’t really have a better place on this website to put it,
|
||||
here is my direnv configuration located at
|
||||
=$HOME/.config/direnv/direnv.toml=.
|
||||
@ -88,19 +82,13 @@ Now, there is only one function I modify when it comes to the
|
||||
appearance of fish when I’m the one using it: the ~fish_greeting~
|
||||
function. I just want it empty.
|
||||
#+BEGIN_SRC fish
|
||||
function fish_greeting
|
||||
pumo-system-info
|
||||
end
|
||||
function fish_greeting; end
|
||||
#+END_SRC
|
||||
|
||||
For my fish prompt, I use [[https://starship.rs][starship]], a shell-agnostic prompt. Let’s
|
||||
load it:
|
||||
#+begin_src fish
|
||||
function starship_transient_prompt_func
|
||||
starship module character
|
||||
end
|
||||
starship init fish | source
|
||||
enable_transience
|
||||
#+end_src
|
||||
|
||||
** Setting up external tools
|
||||
@ -142,8 +130,6 @@ $rlang\
|
||||
$rust\
|
||||
$scala\
|
||||
$zig\
|
||||
$nix_shell\
|
||||
$direnv\
|
||||
$memory_usage\
|
||||
$env_var\
|
||||
$custom\
|
||||
@ -167,23 +153,6 @@ symbol = "λ "
|
||||
style = "bold green"
|
||||
#+end_src
|
||||
|
||||
Some module configurations don’t exactly sit right with me, so let’s
|
||||
tweak them a bit.
|
||||
#+begin_src toml
|
||||
[nix_shell]
|
||||
format = '[$symbol$state( \($name\))]($style)'
|
||||
symbol = '❄️ '
|
||||
|
||||
[shlvl]
|
||||
disabled = false
|
||||
threshold = 3
|
||||
|
||||
[direnv]
|
||||
disabled = false
|
||||
detect_files = ['.envrc', '.env']
|
||||
symbol = ' '
|
||||
#+end_src
|
||||
|
||||
Finally, let’s disable all modules I don’t need.
|
||||
#+begin_src toml
|
||||
[cobol]
|
||||
@ -230,6 +199,8 @@ disable = true
|
||||
disable = true
|
||||
[vagrant]
|
||||
disable = true
|
||||
[nix_shell]
|
||||
disable = true
|
||||
[conda]
|
||||
disable = true
|
||||
[aws]
|
||||
|
Loading…
Reference in New Issue
Block a user