use treesitter plugins provided by nixpkgs

This commit is contained in:
Asmir A 2023-07-07 21:42:00 +02:00
parent d35c4b6878
commit 11f5990417
3 changed files with 1 additions and 8 deletions

View File

@ -15,10 +15,8 @@
nativeBuildInputs = [
pkgs.alejandra
pkgs.ccls
pkgs.clang
pkgs.luaformatter
pkgs.nixd
pkgs.nixd
pkgs.pyright
pkgs.rust-analyzer
pkgs.sumneko-lua-language-server

View File

@ -17,10 +17,10 @@
parsers.nix
parsers.python
parsers.query
parsers.rust
parsers.verilog
parsers.vimdoc
parsers.zig
parsers.rust
]))
cmp-buffer
cmp-cmdline

View File

@ -25,13 +25,8 @@ if vim.fn.isdirectory(parser_install_dir) == 0 then
vim.fn.mkdir(parser_install_dir, "p")
end
-- Adding runtime needed for Nix setup on non NixOS
vim.o.runtimepath = vim.o.runtimepath .. "," .. parser_install_dir
require 'nvim-treesitter.install'.compilers = { 'gcc' }
require 'nvim-treesitter.configs'.setup {
ensure_installed = { "c", "cpp", "zig", "python", "verilog", "nix", "lua", "latex" },
parser_install_dir = parser_install_dir,
highlight = { enable = true, disable = {} },
indent = { enable = false, disable = {} },
rainbow = {