diff --git a/home/kakoune/kak.nix b/home/kakoune/kak.nix index ac9c394..8f5a475 100644 --- a/home/kakoune/kak.nix +++ b/home/kakoune/kak.nix @@ -95,6 +95,12 @@ in { 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 = { args = [ "--stdio" ]; command = "typescript-language-server"; diff --git a/home/kakoune/kakrc b/home/kakoune/kakrc index 42cbdb7..44a147d 100644 --- a/home/kakoune/kakrc +++ b/home/kakoune/kakrc @@ -92,7 +92,7 @@ hook global InsertCompletionHide .* %{ try %{ 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 map window lsp N -docstring "Display the next message request" ": lsp-show-message-request-next" map window normal ": enter-user-mode lsp"