From a7049dcc52e6f079df3921e90bdf324eab2958ca Mon Sep 17 00:00:00 2001 From: twoneis Date: Thu, 25 Jan 2024 06:23:12 +0100 Subject: [PATCH] gas config for helix --- modules/home/editor/default.nix | 1 + modules/home/editor/helix-languages.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 modules/home/editor/helix-languages.nix diff --git a/modules/home/editor/default.nix b/modules/home/editor/default.nix index 34fe179..4757ed8 100644 --- a/modules/home/editor/default.nix +++ b/modules/home/editor/default.nix @@ -4,5 +4,6 @@ defaultEditor = true; extraPackages = with pkgs; [ nil marksman ]; settings = import ./helix-config.nix; + languages = import ./helix-languages.nix; }; } diff --git a/modules/home/editor/helix-languages.nix b/modules/home/editor/helix-languages.nix new file mode 100644 index 0000000..4e76854 --- /dev/null +++ b/modules/home/editor/helix-languages.nix @@ -0,0 +1,15 @@ +{ + language-server.asm-lsp = { + command = "asm-lsp"; + }; + + language = [{ + name = "gas"; + scope = "source.gas"; + auto-format = false; + language-servers = [ "asm-lsp" ]; + indent = { tab-width = 8; unit = " "; }; + roots = []; + file-types = ["S"]; + }]; +}