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) ]; }; }