From 83d7b9c7ce20f16681afacf99ed3ab47427f1ded Mon Sep 17 00:00:00 2001 From: Peter Son Struschka Date: Sun, 28 Feb 2021 17:58:30 +0800 Subject: all: fixes and new modules --- kak/.config/kak-lsp/kak-lsp.toml | 57 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 kak/.config/kak-lsp/kak-lsp.toml (limited to 'kak/.config/kak-lsp/kak-lsp.toml') diff --git a/kak/.config/kak-lsp/kak-lsp.toml b/kak/.config/kak-lsp/kak-lsp.toml new file mode 100644 index 0000000..8468450 --- /dev/null +++ b/kak/.config/kak-lsp/kak-lsp.toml @@ -0,0 +1,57 @@ +snippet_support = true +verbosity = 2 + +[semantic_scopes] +# Map textmate scopes to kakoune faces for semantic highlighting +# the underscores are translated to dots, and indicate nesting. +# That is, if variable_other_field is omitted, it will try the face for +# variable_other and then variable +# +# To see a list of available scopes in the debug buffer, run lsp-semantic-available-scopes +variable = "variable" +entity_name_function = "function" +entity_name_type = "type" +variable_other_enummember = "variable" +entity_name_namespace = "module" + +# Semantic tokens support +# See https://github.com/microsoft/vscode-languageserver-node/blob/8c8981eb4fb6adec27bf1bb5390a0f8f7df2899e/client/src/semanticTokens.proposed.ts#L288 +# for token/modifier types. + +[semantic_tokens] +type = "type" +variable = "variable" +namespace = "module" +function = "function" +string = "string" +keyword = "keyword" +operator = "operator" +comment = "comment" + +[semantic_token_modifiers] +documentation = "documentation" +readonly = "default+d" + +[server] +# exit session if no requests were received during given period in seconds +# works only in unix sockets mode (-s/--session) +# set to 0 to disable +timeout = 1800 # seconds = 30 minutes + +[language.bash] +filetypes = ["sh"] +roots = [".git", ".hg"] +command = "bash-language-server" +args = ["start"] + +#[language.deno] +#filetypes = ["typescript", "javascript"] +#roots = [".git"] +#command = "deno" +#args = ["lsp"] + +[language.typescript] +filetypes = ["typescript"] +roots = ["tsconfig.json"] +command = "typescript-language-server" +args = ["--stdio"] -- cgit v1.2.3