Add markdown lsp

This commit is contained in:
Natsu Kagami 2024-03-11 14:59:15 +01:00
parent 857b7fc98a
commit 45a27e64bc
Signed by: nki
GPG key ID: 55A032EB38B49ADB
2 changed files with 6 additions and 1 deletions

View file

@ -114,6 +114,11 @@ in
experimentalFormatterMode = "on";
};
};
programs.kak-lsp.languages.markdown = {
command = "marksman";
filetypes = [ "markdown" ];
roots = [ ".marksman.toml" ".git" ];
};
programs.my-kakoune.tree-sitter.extraAliases = {
# Scala stuff

View file

@ -85,7 +85,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) %{
hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c|cpp|tex|latex|fsharp|ocaml|haskell|nix|scala|typst|html|css|json|markdown) %{
lsp-enable-window
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>"