My configurations for the software I use
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Adjust config to work better with kakoune-lsp

yemou 6ffcb1da 171c08d9

+48 -16
+48 -16
config/kak/kakrc
··· 5 5 plug "whereswaldon/shellcheck.kak" 6 6 7 7 # kak-lsp 8 - eval %sh{ kak-lsp --kakoune -s $kak_session } 8 + eval %sh{ kak-lsp } 9 9 10 - hook -group lsp global WinSetOption filetype=(c|cpp|go|nix|python|typst|zig|java) %{ 10 + hook global WinSetOption filetype=(c|cpp|go|nix|python|typst|zig|java) %{ 11 11 lsp-enable-window 12 - lsp-inlay-code-lenses-enable window 13 - lsp-inlay-diagnostics-enable window 12 + 13 + map global user l %{:enter-user-mode lsp<ret>} -docstring 'Enter kak-lsp mode' 14 + map global insert -docstring %{ 15 + Select next snippet placeholder 16 + } <tab> '<a-;>:try lsp-snippets-select-next-placeholders catch %{execute-keys -with-hooks <lt>tab> }<ret>' 17 + 18 + map global object a '<a-semicolon>lsp-object<ret>' -docstring 'LSP any symbol' 19 + map global object <a-a> '<a-semicolon>lsp-object<ret>' -docstring 'LSP any symbol' 20 + map global object f '<a-semicolon>lsp-object Function Method<ret>' -docstring 'LSP function or method' 21 + map global object t '<a-semicolon>lsp-object Class Interface Struct<ret>' -docstring 'LSP class interface/struct' 22 + map global object d '<a-semicolon>lsp-diagnostic-object --include-warnings<ret>' -docstring 'LSP errors & warnings' 23 + map global object D '<a-semicolon>lsp-diagnostic-object<ret>' -docstring 'LSP errors' 24 + 14 25 lsp-inlay-hints-enable window 15 - def -hidden insert-a-n %{ 16 - try %{ 17 - lsp-snippets-select-next-placeholders 18 - exec '<a-;>d' 19 - } catch %{ 20 - exec -with-hooks '<c-n>' 21 - } 26 + lsp-inlay-diagnostics-enable window 27 + } 28 + 29 + hook -group lsp-filetype-nix global BufSetOption filetype=nix %{ 30 + set-option buffer lsp_servers %{ 31 + [nixd] 32 + root_globs = [ "flake.nix", "shell.nix", ".git", ".hg" ] 22 33 } 23 - map global insert <a-n> "<a-;>: insert-a-n<ret>" 34 + } 35 + 36 + hook -group lsp-filetype-python global BufSetOption filetype=python %{ 37 + set-option buffer lsp_servers %{ 38 + [ruff] 39 + args = [ "server", "--quiet" ] 40 + root_globs = [ "requirements.txt", "setup.py", "pyproject.toml", ".git" ] 41 + settings_section = "_" 42 + # [ruff.settings._.globalSettings] 43 + } 44 + } 45 + 46 + hook -group lsp-filetype-typst global BufSetOption filetype=typst %{ 47 + set-option buffer lsp_servers %{ 48 + [tinymist] 49 + root_globs = [ ".git" ] 50 + settings_section = "tinymist" 51 + [tinymist.settings.tinymist] 52 + outputPath = "/tmp/tinymist/$root/$dir/$name" 53 + fontPaths = [ "./assets/fonts" ] 54 + formatterMode = "typstyle" 55 + exportPdf = "onType" 56 + } 24 57 } 25 58 26 59 hook -group lsp global WinSetOption filetype=go %{ ··· 90 123 map global user c ':comment-line<ret>' -docstring 'comment line' 91 124 map global user C ':comment-block<ret>' -docstring 'comment block' 92 125 map global user f ':try format catch lsp-formatting<ret>' -docstring 'Run formatcmd or lsp formatter' 93 - map global user l ':enter-user-mode lsp<ret>' -docstring 'Enter kak-lsp user mode' 94 126 map global user p '!wl-paste<ret>' -docstring 'Paste from System Clipboard (Wayland)' 95 127 map global user y '<a-|>wl-copy<ret>' -docstring 'Copy to System Clipboard (Wayland)' 96 128 ··· 135 167 } 136 168 137 169 # Filetype specific options 138 - hook global WinSetOption filetype=(css|html|java|markdown|xml|nix) %{ 170 + hook global WinSetOption filetype=(css|html|java|markdown|typst|xml|nix) %{ 139 171 m-whitespace spaces 2 140 172 } 141 173 ··· 172 204 } 173 205 174 206 # Status Line 175 - set global modelinefmt '%val{bufname} %val{cursor_char_column},%val{cursor_line} {{context_info}} ' 176 - set -add global modelinefmt '{{mode_info}} - %sh{printf $USER} %sh{date +"%R %Z"} ' 207 + # set global modelinefmt '%val{bufname} %val{cursor_char_column},%val{cursor_line} {{context_info}} ' 208 + # set -add global modelinefmt '{{mode_info}} - %sh{printf $USER} %sh{date +"%R %Z"} ' 177 209 #set -add global modelinefmt '%sh{cat /sys/class/power_supply/BAT0/capacity} ' 178 210 179 211 # Set colorscheme