modified helix configuration

This commit is contained in:
xeovalyte 2025-01-13 22:30:11 +01:00
parent 8944b6534a
commit bfc2c002b1
Signed by: xeovalyte
SSH Key Fingerprint: SHA256:GWI1hq+MNKR2UOcvk7n9tekASXT8vyazK7vDF9Xyciw

View File

@ -23,6 +23,13 @@ in {
unstable.nixpkgs-fmt
unstable.tectonic
unstable.texlab
# Nuxt development
unstable.typescript-language-server
unstable.vue-language-server
unstable.typescript
unstable.nodePackages.prettier
dprint
];
@ -43,12 +50,30 @@ in {
package = pkgs.unstable.helix;
defaultEditor = true;
settings = {
# theme = "base16";
editor.cursor-shape = {
insert = "bar";
};
};
languages = {
# Nuxt
language-server.typescript-language-server.config.plugins = [
{
name = "@vue/typescript-plugin";
location = "vue-language-server";
languages = [ "vue" ];
}
];
language-server.vue-language-server = {
command = "vue-language-server";
args = [ "--stdio" ];
config = {
typescript = {
tsdk = "tsc";
};
};
};
# Rust
language-server.rust-analyzer.config = {
cargo = {
@ -61,6 +86,7 @@ in {
command = "svls";
};
# Latex
language-server.texlab = {
config = {
texlab.chktex = {
@ -96,6 +122,18 @@ in {
};
language = [
{
name = "vue";
auto-format = true;
formatter = {
command = "prettier";
args = [ "--parser" "vue" ];
};
scope = "text.html.vue";
roots = ["package.json"];
injection-regex = "vue";
language-servers = [ "typescript-language-server" "vuels" ];
}
{
name = "verilog";
language-servers = [ "svls" ];