add nvim-treesitter with nix and typescript

This commit is contained in:
LavaDesu 2021-07-05 11:24:16 +07:00
parent 5ce07a047a
commit 3f121e3608
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -34,6 +34,10 @@ in {
lf-vim lf-vim
vim-floaterm vim-floaterm
(nvim-treesitter.withPlugins (p: with p; [
tree-sitter-nix
tree-sitter-typescript
]))
]; ];
withNodeJs = true; withNodeJs = true;
@ -82,6 +86,12 @@ in {
" disable empty line tildes " disable empty line tildes
set fcs=eob:\ set fcs=eob:\
lua <<EOF
require'nvim-treesitter.configs'.setup {
highlight = { enable = true }
}
EOF
''; '';
}; };
xdg.configFile."nvim/coc-settings.json".text = builtins.toJSON { xdg.configFile."nvim/coc-settings.json".text = builtins.toJSON {