Compare commits

...

6 Commits

3 changed files with 66 additions and 27 deletions

View File

@ -10,7 +10,7 @@ const simplifiedHead = [
{
async: true,
src: 'https://umami.phundrak.com/script.js',
'data-website-id': '67166941-8c83-4a19-bc8c-139e44b7f7aa',
'data-website-id': '9574ed51-3939-4d4e-979f-6b2908fbe1af',
'data-do-not-track': 'true',
},
],

View File

@ -21,29 +21,30 @@ variables to install grammars for different languages.
css-ts-mode yaml-ts-mode) . lsp-deferred)
:init
(setq treesit-language-source-alist
'((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")
(cpp "https://github.com/tree-sitter/tree-sitter-cpp")
(css "https://github.com/tree-sitter/tree-sitter-css")
(csharp "https://github.com/tree-sitter/tree-sitter-c-sharp")
(elisp "https://github.com/Wilfred/tree-sitter-elisp")
(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"))
(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")
(markdown "https://github.com/ikatyang/tree-sitter-markdown")
(python "https://github.com/tree-sitter/tree-sitter-python")
(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"))
(yaml "https://github.com/ikatyang/tree-sitter-yaml"))))
'((astro "https://github.com/virchau13/tree-sitter-astro")
(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")
(cpp "https://github.com/tree-sitter/tree-sitter-cpp")
(css "https://github.com/tree-sitter/tree-sitter-css")
(csharp "https://github.com/tree-sitter/tree-sitter-c-sharp")
(elisp "https://github.com/Wilfred/tree-sitter-elisp")
(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"))
(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")
(markdown "https://github.com/ikatyang/tree-sitter-markdown")
(python "https://github.com/tree-sitter/tree-sitter-python")
(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")
(yaml "https://github.com/ikatyang/tree-sitter-yaml"))))
#+end_src
*** Appwrite
@ -1445,6 +1446,15 @@ 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
Lets customize a bit the built-in CSS mode.
#+begin_src emacs-lisp

View File

@ -45,6 +45,12 @@ I also use [[https://github.com/elkowar/eww/][eww]] for some widgets, lets 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 dont really have a better place on this website to put it,
here is my direnv configuration located at
=$HOME/.config/direnv/direnv.toml=.
@ -82,13 +88,19 @@ Now, there is only one function I modify when it comes to the
appearance of fish when Im the one using it: the ~fish_greeting~
function. I just want it empty.
#+BEGIN_SRC fish
function fish_greeting; end
function fish_greeting
pumo-system-info
end
#+END_SRC
For my fish prompt, I use [[https://starship.rs][starship]], a shell-agnostic prompt. Lets
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
@ -130,6 +142,8 @@ $rlang\
$rust\
$scala\
$zig\
$nix_shell\
$direnv\
$memory_usage\
$env_var\
$custom\
@ -153,6 +167,23 @@ symbol = "λ "
style = "bold green"
#+end_src
Some module configurations dont exactly sit right with me, so lets
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, lets disable all modules I dont need.
#+begin_src toml
[cobol]
@ -199,8 +230,6 @@ disable = true
disable = true
[vagrant]
disable = true
[nix_shell]
disable = true
[conda]
disable = true
[aws]