diff --git a/pkgsets/cpp.nix b/pkgsets/cpp.nix index e1c5ec3..32d7b10 100644 --- a/pkgsets/cpp.nix +++ b/pkgsets/cpp.nix @@ -1,14 +1,12 @@ { - config, pkgs, ... }: { config.machine.pkgsets.cpp.pkgs = with pkgs; [ + bear clang cmake gcc - global - irony-server ]; } diff --git a/pkgsets/nvim/lsp/c.nix b/pkgsets/nvim/lsp/c.nix new file mode 100644 index 0000000..d7d64dc --- /dev/null +++ b/pkgsets/nvim/lsp/c.nix @@ -0,0 +1,22 @@ +{ + lib, + config, + pkgs, + ... +}: + +lib.optionalString (lib.elem "nvim::lsp::c" config.machine.pkgs) # lua + '' + lspconfig.ccls.setup { + cmd = { "${pkgs.ccls}/bin/ccls" }, + init_options = { + compilationDatabaseDirectory = "build"; + index = { + threads = 0; + }; + clang = { + excludeArgs = { "-frounding-math"} ; + }; + } + } + ''