nix-config/home/gburd/features/nvim/syntaxes.nix
Greg Burd f3fd89af54
A fork of Misterio77 and his standard template.
Many thangs to the hard work and generous availability of:
git@github.com:Misterio77/nix-config.git
2023-09-15 10:53:38 -04:00

59 lines
1.3 KiB
Nix

{ pkgs, config, lib, ... }: {
programs.neovim = {
extraConfig = /* vim */ lib.mkAfter ''
function! SetCustomKeywords()
syn match Todo /TODO/
syn match Done /DONE/
syn match Start /START/
syn match End /END/
endfunction
autocmd Syntax * call SetCustomKeywords()
'';
plugins = with pkgs.vimPlugins; [
rust-vim
dart-vim-plugin
plantuml-syntax
vim-markdown
vim-nix
vim-toml
vim-syntax-shakespeare
gemini-vim-syntax
kotlin-vim
haskell-vim
mermaid-vim
pgsql-vim
vim-terraform
vim-jsx-typescript
vim-caddyfile
{
plugin = vimtex;
config =
let
method =
if config.programs.zathura.enable
then "zathura"
else "general";
in
''
let g:vimtex_view_method = '${method}'
'';
}
# Tree sitter
{
plugin = nvim-treesitter.withAllGrammars;
type = "lua";
config = /* lua */ ''
require('nvim-treesitter.configs').setup{
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
}
'';
}
];
};
}