chore: fmt

This commit is contained in:
u2515h 2023-12-17 12:59:06 +01:00
parent 36ef92f9c6
commit 5de2ea6dd6

View File

@ -28,7 +28,8 @@ in
extraPackages = with pkgs; [ fzf xclip fish ]; extraPackages = with pkgs; [ fzf xclip fish ];
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
vim-fugitive vim-fugitive
neogit diffview-nvim neogit
diffview-nvim
vim-airline vim-airline
zephyr-nvim zephyr-nvim
vim-nix vim-nix
@ -69,16 +70,19 @@ in
oil-nvim oil-nvim
distant-nvim distant-nvim
]; ];
extraLuaConfig = let paths = { extraLuaConfig =
lldb = pkgs.lldb; let
rust_analyzer = rust-analyzer; paths = {
}; lldb = pkgs.lldb;
confDir = lib.sourceFilesBySuffices ./. [ "lua" "vim" ] ; rust_analyzer = rust-analyzer;
in with lib; '' };
vim.cmd [[source ${confDir}/init.vim]] confDir = lib.sourceFilesBySuffices ./. [ "lua" "vim" ];
${concatStringsSep "\n" (mapAttrsToList (name: path: ''${name}_path = "${path}"'') paths)} in
dofile("${confDir}/init.lua") with lib; ''
''; vim.cmd [[source ${confDir}/init.vim]]
${concatStringsSep "\n" (mapAttrsToList (name: path: ''${name}_path = "${path}"'') paths)}
dofile("${confDir}/init.lua")
'';
}; };
programs.git.ignores = [ ".nvim_session" ]; programs.git.ignores = [ ".nvim_session" ];
xdg.configFile."nvim/coc-settings.json".text = xdg.configFile."nvim/coc-settings.json".text =