From 5defb95536d742bc12223c1d9fc07728942ca8da Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Fri, 20 Dec 2024 03:41:07 +0000 Subject: [PATCH] Add djot grammer to neovim --- home-manager/modules/programs/neovim.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/home-manager/modules/programs/neovim.nix b/home-manager/modules/programs/neovim.nix index 45cd344..7aa636c 100644 --- a/home-manager/modules/programs/neovim.nix +++ b/home-manager/modules/programs/neovim.nix @@ -31,7 +31,9 @@ } vim-surround vim-commentary - nvim-treesitter.withAllGrammars + { + plugin = nvim-treesitter.withAllGrammars; + } nvim-nu null-ls-nvim vim-fugitive @@ -39,6 +41,11 @@ extraLuaConfig = '' vim.o.termguicolors = true require'nu'.setup{} + require'nvim-treesitter.configs'.setup { + highlight = { + enable = true, + }, + } ''; extraConfig = '' " Show relative line numbers @@ -49,6 +56,8 @@ set shiftwidth=4 " Keep 4 lines off the edge of the screen when scrolling set scrolloff=4 + " Djot setup + au BufNewFile,BufRead *.dj set filetype=djot ''; withPython3 = true; };