Added a cmake lsp for nixvim

This commit is contained in:
Alexandre 2026-02-13 13:27:26 +01:00
parent 0adad27889
commit 28786ffe71
3 changed files with 80 additions and 4 deletions

61
dev-flakes/vulkan/flake.lock generated Normal file
View File

@ -0,0 +1,61 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1770841267,
"narHash": "sha256-9xejG0KoqsoKEGp2kVbXRlEYtFFcDTHjidiuX8hGO44=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ec7c70d12ce2fc37cb92aff673dcdca89d187bae",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

View File

@ -21,16 +21,27 @@
name = "vulkan"; name = "vulkan";
packages = with pkgs; [ packages = with pkgs; [
shaderc # Shader compile
shader-slang
glslang
# Vulkan
vulkan-headers vulkan-headers
vulkan-loader vulkan-loader
vulkan-validation-layers vulkan-validation-layers
vulkan-tools vulkan-tools
glfw vulkan-utility-libraries
# Other libraries
glfw3
tinyobjloader
glm
cmake cmake
ninja
]; ];
VK_LAYER_PATH = "${pkgs.vulkan-loader}/lib:${pkgs.shaderc.lib}/lib" # Environment Variables
LD_LIBRARY_PATH = "${pkgs.vulkan-loader}/lib:${pkgs.shaderc.lib}/lib";
VK_LAYER_PATH = "${pkgs.vulkan-validation-layers}/share/vulkan/explicit_layer.d";
VULKAN_SDK = "${pkgs.vulkan-validation-layers}/share/vulkan/explicit_layer.d";
shellHook = '' shellHook = ''
echo "Vulkan loaded" echo "Vulkan loaded"
''; '';

View File

@ -132,6 +132,10 @@
nixd = { nixd = {
enable = true; enable = true;
}; };
cmake-language-server = {
enable = true;
};
# C++ language server # C++ language server
clangd = { clangd = {