install projectionist and dispatch, add basic elixir projections

This commit is contained in:
sloane 2025-03-10 15:15:07 -04:00
parent d95518759b
commit 9cb67210b1
Signed by: sloanelybutsurely
SSH key fingerprint: SHA256:8SBnwhl+RY3oEyQxy1a9wByPzxWM0x+/Ejc+sIlY5qQ

View file

@ -2,7 +2,22 @@
programs.nixvim = {
enable = true;
globals = { mapleader = " "; };
globals = {
mapleader = " ";
projectionist_heuristics = {
"mix.exs" = {
"lib/*.ex" = {
type = "source";
alternate = "test/{}_test.exs";
};
"test/*_test.exs" = {
type = "test";
alternate = "lib/{}.ex";
dispatch = "mix test {file}";
};
};
};
};
opts = {
number = true;
@ -121,7 +136,14 @@
command = "lua vim.lsp.buf.format()";
}];
extraPlugins = with pkgs.vimPlugins; [ vim-abolish nerdtree vim-rhubarb ];
extraPlugins = with pkgs.vimPlugins; [
vim-abolish
nerdtree
vim-rhubarb
vim-dispatch
vim-dispatch-neovim
vim-projectionist
];
plugins.commentary.enable = true;
plugins.repeat.enable = true;