tree-sitter

This commit is contained in:
Tyrel Souza 2023-01-02 13:04:19 -05:00
parent 35bcbf7c35
commit fd01060d23
4 changed files with 6 additions and 15 deletions

View File

@ -30,7 +30,6 @@ call plug#begin('~/.vim/plugged')
Plug 'whatyouhide/vim-gotham' Plug 'whatyouhide/vim-gotham'
Plug 'nanotech/jellybeans.vim' Plug 'nanotech/jellybeans.vim'
Plug 'sickill/vim-monokai' Plug 'sickill/vim-monokai'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'flebel/vim-mypy', { 'for': 'python', 'branch': 'bugfix/fast_parser_is_default_and_only_parser' } Plug 'flebel/vim-mypy', { 'for': 'python', 'branch': 'bugfix/fast_parser_is_default_and_only_parser' }
Plug 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-rhubarb' Plug 'tpope/vim-rhubarb'
@ -147,16 +146,6 @@ endfunction
" TreeSitter " TreeSitter
lua <<EOF lua <<EOF
require'nvim-treesitter.configs'.setup { require'nvim-treesitter.configs'.setup {
-- One of "all", "maintained" (parsers with maintainers), or a list of languages
ensure_installed = "all",
-- Install languages synchronously (only applied to `ensure_installed`)
sync_install = false,
auto_install = true,
-- List of parsers to ignore installing
ignore_install = {},
highlight = { highlight = {
-- `false` will disable the whole extension -- `false` will disable the whole extension
enable = true, enable = true,

View File

@ -11,6 +11,7 @@
exa exa
fzf fzf
ripgrep ripgrep
tree-sitter
wget wget
]; ];

View File

@ -23,9 +23,10 @@
programs.neovim = { programs.neovim = {
enable = true; enable = true;
}; plugins = with pkgs.vimPlugins; [
programs.fish = { # Inject tree-sitters, since they're annoying to maintain with sideloading
enable = true; (nvim-treesitter.withPlugins (plugins: pkgs.tree-sitter.allGrammars))
];
}; };

View File

@ -2,5 +2,5 @@
NIX_PATH=nixpkgs=/nix/var/nix/profiles/per-user/tyrel/channels/nixpkgs:/nix/var/nix/profiles/per-user/tyrel/channels NIX_PATH=nixpkgs=/nix/var/nix/profiles/per-user/tyrel/channels/nixpkgs:/nix/var/nix/profiles/per-user/tyrel/channels
#nix run ./_ubuntu switch -vv nix run ./_ubuntu switch -vv
home-manager switch --flake ./_ubuntu home-manager switch --flake ./_ubuntu