more helix setup stuff

This commit is contained in:
Schrottkatze 2024-03-14 16:04:08 +01:00
parent c5bb22722b
commit 275c852d4d
No known key found for this signature in database

View file

@ -30,11 +30,31 @@
line-number = "relative"; line-number = "relative";
bufferline = "multiple"; bufferline = "multiple";
color-modes = true; color-modes = true;
cursorline = true;
lsp = { lsp = {
display-messages = true; display-messages = true;
display-inlay-hints = true; display-inlay-hints = true;
}; };
shell = ["nu" "-c"]; shell = ["nu" "-c"];
statusline.left = [
"mode"
"spinner"
"spacer"
"version-control"
"file-name"
"diagnostics"
"read-only-indicator"
"file-modification-indicator"
"spacer"
];
statusline.right = [
"workspace-diagnostics"
"register"
"position"
"file-encoding"
"file-type"
];
idle-timeout = 30; idle-timeout = 30;
indent-guides = { indent-guides = {
render = true; render = true;
@ -90,20 +110,36 @@
scope = "type"; scope = "type";
}; };
}; };
completion.termSearch.enable = true;
diagnostics.enable = true;
inlayHints = {
bindingModeHints.enable = true;
closureCaptureHints.enable = true;
closureReturnTypeHints.enable = true;
discriminantHints.enable = true;
expressionAdjustmentHints = {
hideOutsideUnsafe = true;
};
lifetimeElisionHints.enable = "skip_trivial";
};
interpret.tests = true;
lens = {
references = {
adt.enable = true;
trait.enable = true;
};
};
typing.autoClosingAngleBrackets.enable = true;
}; };
}; };
"emmet-language-server" = { "emmet-language-server" = {
command = "emmet-language-server"; command = "emmet-language-server";
args = ["--stdio"]; args = ["--stdio"];
}; };
# "php" = { "psalm" = {
# name = "php"; command = "psalm";
# file-types = [ "php" ]; args = ["--language-server"];
# language-server = { };
# command = "psalm";
# args = ["--language-server"];
# };
# };
"typst-lsp" = { "typst-lsp" = {
command = "typst-lsp"; command = "typst-lsp";
config = { config = {
@ -126,6 +162,10 @@
name = "nu"; name = "nu";
language-servers = ["nu-builtin-lsp"]; language-servers = ["nu-builtin-lsp"];
} }
{
name = "php";
language-servers = ["psalm"];
}
{ {
name = "typst"; name = "typst";
scope = "source.typst"; scope = "source.typst";