aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-02-12 19:31:26 +0100
committerSoispha <soispha@vhack.eu>2024-02-12 19:55:59 +0100
commitb1fed6ebdb58ffb6f20305b16cecdc550dc9d27b (patch)
treeb57dbd132f96a15c639d91fd7c21fb4d27b64ea8
parentchore(version): v1.27.4 (diff)
downloadnixos-config-b1fed6ebdb58ffb6f20305b16cecdc550dc9d27b.zip
feat(hm/conf/nix/plgs/lsp/servers/openscad): Init
-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)
+ ];
+ };
+}