[user/malte] Adjust kakoune settings
This commit is contained in:
parent
bb57ede737
commit
e284c4889c
|
@ -90,6 +90,13 @@
|
|||
key = "l";
|
||||
effect = ":enter-user-mode lsp<ret>";
|
||||
}
|
||||
{
|
||||
# Next placeholder in template
|
||||
docstring = "Select next snippet placeholder";
|
||||
mode = "insert";
|
||||
key = "<tab>";
|
||||
effect = "<a-;>:try lsp-snippets-select-next-placeholders catch %{ execute-keys -with-hooks <lt>tab> }<ret>";
|
||||
}
|
||||
];
|
||||
hooks = [
|
||||
{
|
||||
|
@ -104,13 +111,6 @@
|
|||
|
||||
# === Additional mappings for kakoune ===
|
||||
additionalMappings = [
|
||||
{
|
||||
# Switch to last buffer
|
||||
docstring = "Previous buffer";
|
||||
mode = "user";
|
||||
key = ",";
|
||||
effect = ":buffer-previous<ret>";
|
||||
}
|
||||
{
|
||||
# Toggle whitespace highlighter
|
||||
docstring = "Toggle whitespace";
|
||||
|
@ -169,12 +169,6 @@
|
|||
kakLspConfigGen = pkgs.formats.toml {};
|
||||
kakLspConfig = {
|
||||
language = {
|
||||
javascript = {
|
||||
args = ["lsp"];
|
||||
command = "${pkgs.flow}/bin/flow";
|
||||
filetypes = ["javascript"];
|
||||
roots = [".flowconfig"];
|
||||
};
|
||||
latex = {
|
||||
command = "${pkgs.texlab}/bin/texlab";
|
||||
filetypes = ["latex"];
|
||||
|
@ -231,9 +225,9 @@
|
|||
settings_section = "rust-analyzer";
|
||||
};
|
||||
typescript = {
|
||||
args = ["--stdio" "--tsserver-path=${pkgs.nodePackages.typescript}/lib/node_modules/typescript/lib"];
|
||||
command = "${pkgs.nodePackages.typescript-language-server}/bin/typescript-language-server";
|
||||
filetypes = ["typescript"];
|
||||
args = ["--stdio" "--tsserver-path=${pkgs.nodePackages.typescript}/lib/node_modules/typescript/lib"];
|
||||
filetypes = ["typescript" "javascript"];
|
||||
roots = ["package.json" "tsconfig.json" ".git" ".hg"];
|
||||
};
|
||||
vuejs = {
|
||||
|
|
Loading…
Reference in a new issue