Add markdown lsp
This commit is contained in:
parent
857b7fc98a
commit
45a27e64bc
|
@ -114,6 +114,11 @@ in
|
||||||
experimentalFormatterMode = "on";
|
experimentalFormatterMode = "on";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
programs.kak-lsp.languages.markdown = {
|
||||||
|
command = "marksman";
|
||||||
|
filetypes = [ "markdown" ];
|
||||||
|
roots = [ ".marksman.toml" ".git" ];
|
||||||
|
};
|
||||||
|
|
||||||
programs.my-kakoune.tree-sitter.extraAliases = {
|
programs.my-kakoune.tree-sitter.extraAliases = {
|
||||||
# Scala stuff
|
# Scala stuff
|
||||||
|
|
|
@ -85,7 +85,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) %{
|
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
|
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>"
|
||||||
|
|
Loading…
Reference in a new issue