use treesitter plugins provided by nixpkgs
This commit is contained in:
parent
d35c4b6878
commit
11f5990417
@ -15,10 +15,8 @@
|
|||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgs.alejandra
|
pkgs.alejandra
|
||||||
pkgs.ccls
|
pkgs.ccls
|
||||||
pkgs.clang
|
|
||||||
pkgs.luaformatter
|
pkgs.luaformatter
|
||||||
pkgs.nixd
|
pkgs.nixd
|
||||||
pkgs.nixd
|
|
||||||
pkgs.pyright
|
pkgs.pyright
|
||||||
pkgs.rust-analyzer
|
pkgs.rust-analyzer
|
||||||
pkgs.sumneko-lua-language-server
|
pkgs.sumneko-lua-language-server
|
||||||
|
@ -17,10 +17,10 @@
|
|||||||
parsers.nix
|
parsers.nix
|
||||||
parsers.python
|
parsers.python
|
||||||
parsers.query
|
parsers.query
|
||||||
|
parsers.rust
|
||||||
parsers.verilog
|
parsers.verilog
|
||||||
parsers.vimdoc
|
parsers.vimdoc
|
||||||
parsers.zig
|
parsers.zig
|
||||||
parsers.rust
|
|
||||||
]))
|
]))
|
||||||
cmp-buffer
|
cmp-buffer
|
||||||
cmp-cmdline
|
cmp-cmdline
|
||||||
|
@ -25,13 +25,8 @@ if vim.fn.isdirectory(parser_install_dir) == 0 then
|
|||||||
vim.fn.mkdir(parser_install_dir, "p")
|
vim.fn.mkdir(parser_install_dir, "p")
|
||||||
end
|
end
|
||||||
-- Adding runtime needed for Nix setup on non NixOS
|
-- 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 {
|
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 = {} },
|
highlight = { enable = true, disable = {} },
|
||||||
indent = { enable = false, disable = {} },
|
indent = { enable = false, disable = {} },
|
||||||
rainbow = {
|
rainbow = {
|
||||||
|
Loading…
Reference in New Issue
Block a user