about summary refs log tree commit diff stats
path: root/modules/home.legacy/conf/nvim/plgs/lsp/servers/servers/openscad.nix
blob: a0221cc417716863b90be76b1ca730a93a20ebd1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{pkgs, ...}: {
  programs.nixvim = {
    extraConfigLuaPost =
      /*
      lua
      */
      ''
        require('lspconfig').openscad_lsp.setup{
          cmd = {"openscad-lsp", "--stdio", "--fmt-style", "WebKit"},
        }
      '';
    extraPackages = with pkgs; [
      openscad-lsp
      clang-tools # Need to satisfy `clang-format` (which is used by openscad-lsp)
    ];
  };
}