Add djot grammer to neovim

This commit is contained in:
Nathan McCarty 2024-12-20 03:41:07 +00:00
parent 0273032031
commit 5defb95536

View file

@ -31,7 +31,9 @@
} }
vim-surround vim-surround
vim-commentary vim-commentary
nvim-treesitter.withAllGrammars {
plugin = nvim-treesitter.withAllGrammars;
}
nvim-nu nvim-nu
null-ls-nvim null-ls-nvim
vim-fugitive vim-fugitive
@ -39,6 +41,11 @@
extraLuaConfig = '' extraLuaConfig = ''
vim.o.termguicolors = true vim.o.termguicolors = true
require'nu'.setup{} require'nu'.setup{}
require'nvim-treesitter.configs'.setup {
highlight = {
enable = true,
},
}
''; '';
extraConfig = '' extraConfig = ''
" Show relative line numbers " Show relative line numbers
@ -49,6 +56,8 @@
set shiftwidth=4 set shiftwidth=4
" Keep 4 lines off the edge of the screen when scrolling " Keep 4 lines off the edge of the screen when scrolling
set scrolloff=4 set scrolloff=4
" Djot setup
au BufNewFile,BufRead *.dj set filetype=djot
''; '';
withPython3 = true; withPython3 = true;
}; };