use treesitter plugins provided by nixpkgs
This commit is contained in:
parent
d35c4b6878
commit
11f5990417
@ -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
|
||||
|
@ -17,10 +17,10 @@
|
||||
parsers.nix
|
||||
parsers.python
|
||||
parsers.query
|
||||
parsers.rust
|
||||
parsers.verilog
|
||||
parsers.vimdoc
|
||||
parsers.zig
|
||||
parsers.rust
|
||||
]))
|
||||
cmp-buffer
|
||||
cmp-cmdline
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user