Skip to content

Commit 80de893

Browse files
committed
chore(nvim): fix treesitter install
1 parent 04a3fe5 commit 80de893

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

home-manager/neovim/config/lua/treesitter-installer.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require'nvim-treesitter.configs'.setup {
88

99

1010
-- A list of parser names, or "all" (the five listed parsers should always be installed)
11-
ensure_installed = { "c", "lua" },
11+
ensure_installed = { "c", "make", "bash", "html", "javascript", "typescript", "tsx", "git_config", "gitcommit", "gitignore", "json", "yaml", "python", "php" },
1212

1313
-- Install parsers synchronously (only applied to `ensure_installed`)
1414
sync_install = false,
@@ -18,7 +18,7 @@ require'nvim-treesitter.configs'.setup {
1818
auto_install = true,
1919

2020
-- List of parsers to ignore installing (or "all")
21-
ignore_install = { "javascript" },
21+
ignore_install = { },
2222

2323
---- If you need to change the installation directory of the parsers (see -> Advanced Setup)
2424
-- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")!

home-manager/neovim/default.nix

+12-13
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
{ pkgs, lib, ... }:
2-
let
3-
nixos-23_05 = import <nixos-23.05> { };
4-
in
52
{
63
programs.neovim = {
74
enable = true;
85
# extraConfig = builtins.readFile ./init.vim + builtins.readFile ./keymap.vim;
96
# extraLuaConfig = builtins.concatStringsSep "\n" (map (file: builtins.readFile file) (lib.filesystem.listFilesRecursive ./lua));
10-
extraPackages = with pkgs;
11-
[
12-
clang
13-
ripgrep
14-
tree-sitter
15-
xclip # x11
16-
wl-clipboard # wayland
17-
];
7+
extraPackages = with pkgs; [
8+
clang
9+
ripgrep
10+
tree-sitter
11+
xclip # x11
12+
wl-clipboard # wayland
13+
];
1814
plugins = with pkgs.vimPlugins; [
1915
packer-nvim
2016
vim-fugitive
2117
plenary-nvim
2218
telescope-nvim
23-
nixos-23_05.vimPlugins.nvim-treesitter.withAllGrammars
19+
nvim-treesitter.withAllGrammars
2420
nvim-colorizer-lua
2521
nvim-web-devicons
2622
nvim-lspconfig
@@ -44,5 +40,8 @@ in
4440
viAlias = true;
4541
vimAlias = true;
4642
};
47-
xdg.configFile."nvim" = { source = ./config; recursive = true; };
43+
xdg.configFile."nvim" = {
44+
source = ./config;
45+
recursive = true;
46+
};
4847
}

0 commit comments

Comments
 (0)