neovim: Reorganise directory layout
This also loads UltiSnips by setting a configuration option instead of symlinking it to the default location.
This commit is contained in:
parent
35e6bf8185
commit
80f23f019b
|
@ -10,7 +10,7 @@
|
||||||
./misc.nix
|
./misc.nix
|
||||||
./mpd.nix
|
./mpd.nix
|
||||||
./mpv
|
./mpv
|
||||||
./neovim.nix
|
./neovim
|
||||||
./pass.nix
|
./pass.nix
|
||||||
./programs.nix
|
./programs.nix
|
||||||
./scripts.nix
|
./scripts.nix
|
||||||
|
|
|
@ -211,6 +211,7 @@ in
|
||||||
{
|
{
|
||||||
plugin = ultisnips;
|
plugin = ultisnips;
|
||||||
config = ''
|
config = ''
|
||||||
|
let g:UltiSnipsSnippetDirectories = [ '${./UltiSnips}' ]
|
||||||
let g:UltiSnipsExpandTrigger = '<tab>'
|
let g:UltiSnipsExpandTrigger = '<tab>'
|
||||||
let g:UltiSnipsJumpForwardTrigger = '<tab>'
|
let g:UltiSnipsJumpForwardTrigger = '<tab>'
|
||||||
let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
|
let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
|
||||||
|
@ -302,10 +303,6 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile = {
|
|
||||||
"nvim/UltiSnips".source = ../files/nvim/UltiSnips;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.sessionVariables.EDITOR = "nvim";
|
home.sessionVariables.EDITOR = "nvim";
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
Loading…
Reference in a new issue