about summary refs log tree commit diff stats
path: root/hm
diff options
context:
space:
mode:
Diffstat (limited to 'hm')
-rw-r--r--hm/soispha/conf/nvim/plgs/lsp/servers/default.nix3
-rw-r--r--hm/soispha/conf/nvim/plgs/lsp/servers/servers/openscad.nix17
2 files changed, 19 insertions, 1 deletions
diff --git a/hm/soispha/conf/nvim/plgs/lsp/servers/default.nix b/hm/soispha/conf/nvim/plgs/lsp/servers/default.nix
index d8eae8cc..439fd859 100644
--- a/hm/soispha/conf/nvim/plgs/lsp/servers/default.nix
+++ b/hm/soispha/conf/nvim/plgs/lsp/servers/default.nix
@@ -1,11 +1,12 @@
 {...}: {
   imports = [
+    # ./servers/pylyzer.nix
     ./servers/bashls.nix
     ./servers/ccls.nix
     ./servers/ltex.nix
     ./servers/lua-ls.nix
     ./servers/nil_ls.nix
-    # ./servers/pylyzer.nix
+    ./servers/openscad.nix
     ./servers/ruff-lsp.nix
     ./servers/rust-analyzer.nix
     ./servers/texlab.nix
diff --git a/hm/soispha/conf/nvim/plgs/lsp/servers/servers/openscad.nix b/hm/soispha/conf/nvim/plgs/lsp/servers/servers/openscad.nix
new file mode 100644
index 00000000..c064042b
--- /dev/null
+++ b/hm/soispha/conf/nvim/plgs/lsp/servers/servers/openscad.nix
@@ -0,0 +1,17 @@
+{pkgs, ...}: {
+  programs.nixvim = {
+    extraConfigLuaPost =
+      /*
+      lua
+      */
+      ''
+        require('lspconfig').openscad_lsp.setup{
+          cmd = {"openscad-lsp", "--stdio", "--fmt-style", "GNU"},
+        }
+      '';
+    extraPackages = with pkgs; [
+      openscad-lsp
+      clang-tools # Need to satisfy `clang-format` (which is used by openscad-lsp)
+    ];
+  };
+}