Add elixir config for kak-lsp

This commit is contained in:
Natsu Kagami 2024-06-11 19:43:58 +02:00
parent cc7d62745c
commit 2326c903c0
Signed by: nki
GPG key ID: 55A032EB38B49ADB
2 changed files with 7 additions and 1 deletions

View file

@ -95,6 +95,12 @@ in
{ face = "ts_markup_italic"; token = "text"; modifiers = [ "emph" ]; } { face = "ts_markup_italic"; token = "text"; modifiers = [ "emph" ]; }
]; ];
programs.kak-lsp.languageServers.elixir-ls = {
args = [ ];
command = "elixir-ls";
filetypes = [ "elixir" ];
roots = [ "mix.exs" ];
};
programs.kak-lsp.languageServers.typescript-language-server = { programs.kak-lsp.languageServers.typescript-language-server = {
args = [ "--stdio" ]; args = [ "--stdio" ];
command = "typescript-language-server"; command = "typescript-language-server";

View file

@ -92,7 +92,7 @@ hook global InsertCompletionHide .* %{
try %{ try %{
eval %sh{test -z "$WE_STARTED_KAK" && kak-lsp --kakoune -s $kak_session} eval %sh{test -z "$WE_STARTED_KAK" && kak-lsp --kakoune -s $kak_session}
} }
hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c|cpp|tex|latex|fsharp|ocaml|haskell|nix|scala|typst|html|css|json|markdown|templ) %{ hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c|cpp|tex|latex|fsharp|ocaml|haskell|nix|scala|typst|html|css|json|markdown|templ|elixir) %{
lsp-enable-window lsp-enable-window
map window lsp N -docstring "Display the next message request" ": lsp-show-message-request-next<ret>" map window lsp N -docstring "Display the next message request" ": lsp-show-message-request-next<ret>"
map window normal <c-l> ": enter-user-mode lsp<ret>" map window normal <c-l> ": enter-user-mode lsp<ret>"