From b1fed6ebdb58ffb6f20305b16cecdc550dc9d27b Mon Sep 17 00:00:00 2001 From: Soispha Date: Mon, 12 Feb 2024 19:31:26 +0100 Subject: feat(hm/conf/nix/plgs/lsp/servers/openscad): Init --- hm/soispha/conf/nvim/plgs/lsp/servers/default.nix | 3 ++- .../conf/nvim/plgs/lsp/servers/servers/openscad.nix | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 hm/soispha/conf/nvim/plgs/lsp/servers/servers/openscad.nix (limited to 'hm/soispha/conf/nvim/plgs/lsp/servers') 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) + ]; + }; +} -- cgit 1.4.1