nvim: add filetypes for vto, add all treesitter grammars

This commit is contained in:
Benjamin Yule Bädorf 2024-04-15 12:37:57 +02:00
parent afa83a4e24
commit 54fc54285f
Signed by: b12f
GPG key ID: 729956E1124F8F26
2 changed files with 5 additions and 49 deletions

View file

@ -45,55 +45,7 @@ in {
]; ];
plugins = with pkgs.vimPlugins; lib.mkIf cfg.full [ plugins = with pkgs.vimPlugins; lib.mkIf cfg.full [
(pkgs.vimPlugins.nvim-treesitter.withPlugins (p: [ pkgs.vimPlugins.nvim-treesitter.withAllGrammars
p.ini
p.json
p.json5
p.markdown
p.nix
p.toml
p.yaml
p.css
p.graphql
p.html
p.javascript
p.scss
p.tsx
p.typescript
p.vue
p.c
p.cpp
p.go
p.gomod
p.gosum
p.haskell
p.lua
p.php
p.python
p.ruby
p.rust
p.vim
p.vimdoc
p.passwd
p.sql
p.diff
p.gitcommit
p.gitignore
p.git_config
p.gitattributes
p.git_rebase
p.bash
p.dockerfile
p.make
p.ninja
p.terraform
]))
# Dependencies for nvim-lspconfig # Dependencies for nvim-lspconfig
nvim-cmp nvim-cmp
@ -186,6 +138,7 @@ in {
(builtins.readFile ./ui.vim) (builtins.readFile ./ui.vim)
(builtins.readFile ./quickfixopenall.vim) (builtins.readFile ./quickfixopenall.vim)
(builtins.readFile ./lsp.vim) (builtins.readFile ./lsp.vim)
(builtins.readFile ./filetypes.vim)
'' ''
" fzf with file preview " fzf with file preview
command! -bang -nargs=? -complete=dir Files command! -bang -nargs=? -complete=dir Files

View file

@ -0,0 +1,3 @@
au BufRead,BufNewFile *.html.twig set filetype=html
au BufRead,BufNewFile *.vto set filetype=html
au BufRead,BufNewFile *.njk set filetype=html