feat: nvim ebnf treesitter support

This commit is contained in:
Jeremy Wall 2024-10-09 19:26:27 -04:00
parent adc4eb27f4
commit be9e684bb5
3 changed files with 51 additions and 4 deletions

View File

@ -54,15 +54,17 @@
"nixpkgs" "nixpkgs"
], ],
"nurl-flake": "nurl-flake", "nurl-flake": "nurl-flake",
"nvim-bnf-src": "nvim-bnf-src",
"roslyn-lsp": "roslyn-lsp", "roslyn-lsp": "roslyn-lsp",
"treesitter-context": "treesitter-context" "treesitter-context": "treesitter-context",
"victoria-logs-src": "victoria-logs-src"
}, },
"locked": { "locked": {
"lastModified": 1728423355, "lastModified": 1728497279,
"narHash": "sha256-purHXipPRWJAxFAjRevkbq4mtoOqGTzdpql/ifzDiw8=", "narHash": "sha256-O0/mAUkaFzfN9MZ/p343P0nY9JIJWsCyDSQgOtBhJkw=",
"owner": "zaphar", "owner": "zaphar",
"repo": "nix-flakes", "repo": "nix-flakes",
"rev": "a489c4f6818b31b1839463735cd3be07dcccb5da", "rev": "6f231a42300bd08084f52cca55ca96207c68344e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -968,6 +970,22 @@
"type": "github" "type": "github"
} }
}, },
"nvim-bnf-src": {
"flake": false,
"locked": {
"lastModified": 1555099325,
"narHash": "sha256-zeW/2wIAwvxb/R8bXDjPEYvB8KWBDx6T0DcMH6NY2NU=",
"owner": "daskol",
"repo": "nvim-bnf",
"rev": "749aa45be562d4d24340719e66ae750001885f38",
"type": "github"
},
"original": {
"owner": "daskol",
"repo": "nvim-bnf",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"agenix-flake": "agenix-flake", "agenix-flake": "agenix-flake",
@ -1379,6 +1397,23 @@
"id": "nixpkgs", "id": "nixpkgs",
"type": "indirect" "type": "indirect"
} }
},
"victoria-logs-src": {
"flake": false,
"locked": {
"lastModified": 1728382879,
"narHash": "sha256-iaV4bjwjLqQcB//xIH16lRFry9ncxej+DLesb3pbm/4=",
"owner": "VictoriaMetrics",
"repo": "VictoriaMetrics",
"rev": "6878982c93e34a2bf6ab026b3809073b284b6afc",
"type": "github"
},
"original": {
"owner": "VictoriaMetrics",
"ref": "v0.34.0-victorialogs",
"repo": "VictoriaMetrics",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View File

@ -98,6 +98,8 @@
}; };
neogit-nvim = custom-flakes.packages."${system}".neogit-nvim; neogit-nvim = custom-flakes.packages."${system}".neogit-nvim;
d2-vim = custom-flakes.packages."${system}".d2-vim; d2-vim = custom-flakes.packages."${system}".d2-vim;
# TODO(zaphar): Apparently this is a remote plugin so it needs some additional love.
#nvim-bnf = custom-flakes.packages."${system}".nvim-bnf;
nvim-treesitter-context = custom-flakes.packages."${system}".nvim-treesitter-context; nvim-treesitter-context = custom-flakes.packages."${system}".nvim-treesitter-context;
roslyn-nvim = custom-flakes.packages."${system}".roslyn-nvim; roslyn-nvim = custom-flakes.packages."${system}".roslyn-nvim;
nvim = neovim-flake.packages."${system}".neovim; nvim = neovim-flake.packages."${system}".neovim;
@ -156,9 +158,11 @@ EOF";
lualine-lsp-progress lualine-lsp-progress
lean-nvim lean-nvim
roslyn-nvim roslyn-nvim
#nvim-bnf
nvim-treesitter-context nvim-treesitter-context
nvim-treesitter-textobjects nvim-treesitter-textobjects
nvim-treesitter-parsers.ini nvim-treesitter-parsers.ini
nvim-treesitter-parsers.ebnf
nvim-treesitter-parsers.rust nvim-treesitter-parsers.rust
nvim-treesitter-parsers.c nvim-treesitter-parsers.c
#nvim-treesitter-parsers.c_sharp # currently broken for some reason #nvim-treesitter-parsers.c_sharp # currently broken for some reason

View File

@ -72,6 +72,14 @@ vim.cmd([[
au BufNewFile,BufRead *.hrl filetype indent off au BufNewFile,BufRead *.hrl filetype indent off
]]) ]])
vim.cmd([[
au BufNewFile,BufRead *.nix set tabstop=2 nosmarttab
]])
vim.cmd([[
au BufNewFile,BufRead *.ebnf set filetype=ebnf
]])
-- Telelscope Imports -- Telelscope Imports
local telescope = require('telescope') local telescope = require('telescope')