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.nixpkgs-fmt
unstable.tectonic unstable.tectonic
unstable.texlab unstable.texlab
# Nuxt development
unstable.typescript-language-server
unstable.vue-language-server
unstable.typescript
unstable.nodePackages.prettier
dprint dprint
]; ];
@ -43,12 +50,30 @@ in {
package = pkgs.unstable.helix; package = pkgs.unstable.helix;
defaultEditor = true; defaultEditor = true;
settings = { settings = {
# theme = "base16";
editor.cursor-shape = { editor.cursor-shape = {
insert = "bar"; insert = "bar";
}; };
}; };
languages = { 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 # Rust
language-server.rust-analyzer.config = { language-server.rust-analyzer.config = {
cargo = { cargo = {
@ -61,6 +86,7 @@ in {
command = "svls"; command = "svls";
}; };
# Latex
language-server.texlab = { language-server.texlab = {
config = { config = {
texlab.chktex = { texlab.chktex = {
@ -96,6 +122,18 @@ in {
}; };
language = [ 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"; name = "verilog";
language-servers = [ "svls" ]; language-servers = [ "svls" ];