mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-01 06:23:04 +02:00
fix: nvim-treesitter
This commit is contained in:
13
flake.nix
13
flake.nix
@@ -52,11 +52,16 @@
|
||||
}
|
||||
);
|
||||
devShells = forEachSystem (
|
||||
system: {
|
||||
default = nixpkgs.legacyPackages.${system}.mkShell {
|
||||
packages = [
|
||||
system:
|
||||
let pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs;[
|
||||
# fix https://discourse.nixos.org/t/non-interactive-bash-errors-from-flake-nix-mkshell/33310
|
||||
nixpkgs.legacyPackages.${system}.bashInteractive
|
||||
bashInteractive
|
||||
# fix `cc` replaced by clang, which causes nvim-treesitter compilation error
|
||||
gcc
|
||||
];
|
||||
name = "dots";
|
||||
shellHook = ''
|
||||
|
||||
@@ -6,11 +6,12 @@
|
||||
cmake-language-server
|
||||
gnumake
|
||||
checkmake
|
||||
llvmPackages.clang-unwrapped # c/c++ tools with clang-tools such as clanvimPlugins.nvim-treesitter-parsers.vuegd
|
||||
lldb
|
||||
# c/c++ compiler, required by nvim-treesitter!
|
||||
# to avoid conflicts, you can comment clang-unwrapped first to compile all nvim-treesitter-parsers.
|
||||
gcc
|
||||
# c/c++ tools with clang-tools, the unwrapped version won't
|
||||
# add alias like `cc` and `c++`, so that it won't conflict with gcc
|
||||
llvmPackages.clang-unwrapped
|
||||
lldb
|
||||
|
||||
#-- python
|
||||
nodePackages.pyright # python language server
|
||||
|
||||
Reference in New Issue
Block a user