mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-14 00:26:24 +00:00
f3fd89af54
Many thangs to the hard work and generous availability of: git@github.com:Misterio77/nix-config.git
59 lines
1.3 KiB
Nix
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,
|
|
},
|
|
}
|
|
'';
|
|
}
|
|
];
|
|
};
|
|
}
|