Compare commits
6 Commits
bcaeb2ac30
...
bec66b58a7
Author | SHA1 | Date | |
---|---|---|---|
bec66b58a7 | |||
d97531a1d1 | |||
7848ed1168 | |||
4f50b88488 | |||
63133d312e | |||
d7c2eadcec |
@ -10,7 +10,7 @@ const simplifiedHead = [
|
|||||||
{
|
{
|
||||||
async: true,
|
async: true,
|
||||||
src: 'https://umami.phundrak.com/script.js',
|
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',
|
'data-do-not-track': 'true',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -21,29 +21,30 @@ variables to install grammars for different languages.
|
|||||||
css-ts-mode yaml-ts-mode) . lsp-deferred)
|
css-ts-mode yaml-ts-mode) . lsp-deferred)
|
||||||
:init
|
:init
|
||||||
(setq treesit-language-source-alist
|
(setq treesit-language-source-alist
|
||||||
'((bash "https://github.com/tree-sitter/tree-sitter-bash")
|
'((astro "https://github.com/virchau13/tree-sitter-astro")
|
||||||
(c "https://github.com/tree-sitter/tree-sitter-c")
|
(bash "https://github.com/tree-sitter/tree-sitter-bash")
|
||||||
(cmake "https://github.com/uyha/tree-sitter-cmake")
|
(c "https://github.com/tree-sitter/tree-sitter-c")
|
||||||
(common-lisp "https://github.com/theHamsta/tree-sitter-commonlisp")
|
(cmake "https://github.com/uyha/tree-sitter-cmake")
|
||||||
(cpp "https://github.com/tree-sitter/tree-sitter-cpp")
|
(common-lisp "https://github.com/theHamsta/tree-sitter-commonlisp")
|
||||||
(css "https://github.com/tree-sitter/tree-sitter-css")
|
(cpp "https://github.com/tree-sitter/tree-sitter-cpp")
|
||||||
(csharp "https://github.com/tree-sitter/tree-sitter-c-sharp")
|
(css "https://github.com/tree-sitter/tree-sitter-css")
|
||||||
(elisp "https://github.com/Wilfred/tree-sitter-elisp")
|
(csharp "https://github.com/tree-sitter/tree-sitter-c-sharp")
|
||||||
(go "https://github.com/tree-sitter/tree-sitter-go")
|
(elisp "https://github.com/Wilfred/tree-sitter-elisp")
|
||||||
(go-mod "https://github.com/camdencheek/tree-sitter-go-mod")
|
(go "https://github.com/tree-sitter/tree-sitter-go")
|
||||||
(html "https://github.com/tree-sitter/tree-sitter-html")
|
(go-mod "https://github.com/camdencheek/tree-sitter-go-mod")
|
||||||
(js . ("https://github.com/tree-sitter/tree-sitter-javascript" "master" "src"))
|
(html "https://github.com/tree-sitter/tree-sitter-html")
|
||||||
(json "https://github.com/tree-sitter/tree-sitter-json")
|
(js ("https://github.com/tree-sitter/tree-sitter-javascript" "master" "src"))
|
||||||
(lua "https://github.com/Azganoth/tree-sitter-lua")
|
(json "https://github.com/tree-sitter/tree-sitter-json")
|
||||||
(make "https://github.com/alemuller/tree-sitter-make")
|
(lua "https://github.com/Azganoth/tree-sitter-lua")
|
||||||
(markdown "https://github.com/ikatyang/tree-sitter-markdown")
|
(make "https://github.com/alemuller/tree-sitter-make")
|
||||||
(python "https://github.com/tree-sitter/tree-sitter-python")
|
(markdown "https://github.com/ikatyang/tree-sitter-markdown")
|
||||||
(r "https://github.com/r-lib/tree-sitter-r")
|
(python "https://github.com/tree-sitter/tree-sitter-python")
|
||||||
(rust "https://github.com/tree-sitter/tree-sitter-rust")
|
(r "https://github.com/r-lib/tree-sitter-r")
|
||||||
(toml "https://github.com/tree-sitter/tree-sitter-toml")
|
(rust "https://github.com/tree-sitter/tree-sitter-rust")
|
||||||
(tsx . ("https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src"))
|
(toml "https://github.com/tree-sitter/tree-sitter-toml")
|
||||||
(typescript . ("https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src"))
|
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")
|
||||||
(yaml "https://github.com/ikatyang/tree-sitter-yaml"))))
|
(typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")
|
||||||
|
(yaml "https://github.com/ikatyang/tree-sitter-yaml"))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Appwrite
|
*** Appwrite
|
||||||
@ -1445,6 +1446,15 @@ Auto-completion for ~emmet-mode~, ~html-mode~, and ~web-mode~.
|
|||||||
:after (emmet-mode web-mode))
|
:after (emmet-mode web-mode))
|
||||||
#+end_src
|
#+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
|
**** CSS
|
||||||
Let’s customize a bit the built-in CSS mode.
|
Let’s customize a bit the built-in CSS mode.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -45,6 +45,12 @@ I also use [[https://github.com/elkowar/eww/][eww]] for some widgets, let’s lo
|
|||||||
eww shell-completions --shell fish | source
|
eww shell-completions --shell fish | source
|
||||||
#+end_src
|
#+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,
|
Since I don’t really have a better place on this website to put it,
|
||||||
here is my direnv configuration located at
|
here is my direnv configuration located at
|
||||||
=$HOME/.config/direnv/direnv.toml=.
|
=$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 I’m the one using it: the ~fish_greeting~
|
appearance of fish when I’m the one using it: the ~fish_greeting~
|
||||||
function. I just want it empty.
|
function. I just want it empty.
|
||||||
#+BEGIN_SRC fish
|
#+BEGIN_SRC fish
|
||||||
function fish_greeting; end
|
function fish_greeting
|
||||||
|
pumo-system-info
|
||||||
|
end
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
For my fish prompt, I use [[https://starship.rs][starship]], a shell-agnostic prompt. Let’s
|
For my fish prompt, I use [[https://starship.rs][starship]], a shell-agnostic prompt. Let’s
|
||||||
load it:
|
load it:
|
||||||
#+begin_src fish
|
#+begin_src fish
|
||||||
|
function starship_transient_prompt_func
|
||||||
|
starship module character
|
||||||
|
end
|
||||||
starship init fish | source
|
starship init fish | source
|
||||||
|
enable_transience
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Setting up external tools
|
** Setting up external tools
|
||||||
@ -130,6 +142,8 @@ $rlang\
|
|||||||
$rust\
|
$rust\
|
||||||
$scala\
|
$scala\
|
||||||
$zig\
|
$zig\
|
||||||
|
$nix_shell\
|
||||||
|
$direnv\
|
||||||
$memory_usage\
|
$memory_usage\
|
||||||
$env_var\
|
$env_var\
|
||||||
$custom\
|
$custom\
|
||||||
@ -153,6 +167,23 @@ symbol = "λ "
|
|||||||
style = "bold green"
|
style = "bold green"
|
||||||
#+end_src
|
#+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.
|
Finally, let’s disable all modules I don’t need.
|
||||||
#+begin_src toml
|
#+begin_src toml
|
||||||
[cobol]
|
[cobol]
|
||||||
@ -199,8 +230,6 @@ disable = true
|
|||||||
disable = true
|
disable = true
|
||||||
[vagrant]
|
[vagrant]
|
||||||
disable = true
|
disable = true
|
||||||
[nix_shell]
|
|
||||||
disable = true
|
|
||||||
[conda]
|
[conda]
|
||||||
disable = true
|
disable = true
|
||||||
[aws]
|
[aws]
|
||||||
|
Loading…
Reference in New Issue
Block a user