install projectionist and dispatch, add basic elixir projections
This commit is contained in:
parent
d95518759b
commit
9cb67210b1
1 changed files with 24 additions and 2 deletions
|
@ -2,7 +2,22 @@
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
enable = true;
|
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 = {
|
opts = {
|
||||||
number = true;
|
number = true;
|
||||||
|
@ -121,7 +136,14 @@
|
||||||
command = "lua vim.lsp.buf.format()";
|
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.commentary.enable = true;
|
||||||
plugins.repeat.enable = true;
|
plugins.repeat.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue