fix: neovim & wezterm

This commit is contained in:
Ryan Yin
2023-08-14 11:48:28 +08:00
parent bc9b29f62b
commit 9dbf2293ce
3 changed files with 7 additions and 14 deletions

View File

@@ -26,8 +26,6 @@ return {
{ import = "astrocommunity.scrolling.nvim-scrollbar" }, { import = "astrocommunity.scrolling.nvim-scrollbar" },
{ import = "astrocommunity.editing-support.auto-save-nvim" }, { import = "astrocommunity.editing-support.auto-save-nvim" },
{ import = "astrocommunity.editing-support.todo-comments-nvim" }, { import = "astrocommunity.editing-support.todo-comments-nvim" },
-- clipboard history manager
{ import = "astrocommunity.editing-support.yanky-nvim" },
-- Language Support -- Language Support
---- Frontend & NodeJS ---- Frontend & NodeJS
{ import = "astrocommunity.pack.typescript-all-in-one" }, { import = "astrocommunity.pack.typescript-all-in-one" },

View File

@@ -10,19 +10,12 @@
#e############################################################################# #e#############################################################################
{ {
xdg.configFile = { xdg.configFile = {
# base config # astronvim's config
"nvim" = { "nvim".source = astronvim;
# update AstroNvim
onChange = "${pkgs.neovim}/bin/nvim --headless +quitall";
source = astronvim;
};
# my cusotom astronvim config, astronvim will load it after base config # my cusotom astronvim config, astronvim will load it after base config
# https://github.com/AstroNvim/AstroNvim/blob/v3.32.0/lua/astronvim/bootstrap.lua#L15-L16 # https://github.com/AstroNvim/AstroNvim/blob/v3.32.0/lua/astronvim/bootstrap.lua#L15-L16
"astronvim/lua/user" = { "astronvim/lua/user".source = ./astronvim_user;
# update AstroNvim
onChange = "${pkgs.neovim}/bin/nvim --headless +quitall";
source = ./astronvim_user;
};
}; };
nixpkgs.config = { nixpkgs.config = {
@@ -41,7 +34,7 @@
withPython3 = true; withPython3 = true;
withNodeJs = true; withNodeJs = true;
extraPackages = []; extraPackages = with pkgs; [];
# currently we use lazy.nvim as neovim's package manager, so comment this one. # currently we use lazy.nvim as neovim's package manager, so comment this one.
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [

View File

@@ -1,6 +1,7 @@
{ {
lib, lib,
pkgs, pkgs,
pkgs-unstable,
catppuccin-wezterm, catppuccin-wezterm,
... ...
}: }:
@@ -16,6 +17,7 @@
programs.wezterm = { programs.wezterm = {
enable = false; enable = false;
package = pkgs-unstable.wezterm;
extraConfig = extraConfig =
let let