feat: update nvim package
All checks were successful
check-flake / build (push) Successful in 17m41s
All checks were successful
check-flake / build (push) Successful in 17m41s
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{pkgs}:
|
{ pkgs }:
|
||||||
pkgs.stdenv.mkDerivation {
|
pkgs.stdenv.mkDerivation {
|
||||||
name = "nvim-config";
|
name = "nvim-config";
|
||||||
src = ./src;
|
src = ./src;
|
||||||
|
|||||||
@@ -34,7 +34,9 @@ require("lazy").setup({
|
|||||||
{ import = "lazyvim.plugins.extras.lang.yaml" },
|
{ import = "lazyvim.plugins.extras.lang.yaml" },
|
||||||
{ import = "lazyvim.plugins.extras.ui.mini-indentscope" },
|
{ import = "lazyvim.plugins.extras.ui.mini-indentscope" },
|
||||||
{ import = "lazyvim.plugins.extras.ui.treesitter-context" },
|
{ import = "lazyvim.plugins.extras.ui.treesitter-context" },
|
||||||
{ import = "plugins.tokyonight" },
|
{ import = "plugins.catppuccin" },
|
||||||
|
-- { import = "plugins.tokyonight" },
|
||||||
|
-- { import = "plugins.lang.nix" },
|
||||||
{ import = "plugins.lang.shell" },
|
{ import = "plugins.lang.shell" },
|
||||||
{ import = "plugins.misc.tmux-navigator" },
|
{ import = "plugins.misc.tmux-navigator" },
|
||||||
},
|
},
|
||||||
@@ -51,7 +53,7 @@ require("lazy").setup({
|
|||||||
lazyvim = false,
|
lazyvim = false,
|
||||||
neovim = false,
|
neovim = false,
|
||||||
},
|
},
|
||||||
install = { colorscheme = { "tokyonight", "habamax" } },
|
install = { colorscheme = { "catppuccin-macchiato" } },
|
||||||
checker = { enabled = true }, -- automatically check for plugin updates
|
checker = { enabled = true }, -- automatically check for plugin updates
|
||||||
performance = {
|
performance = {
|
||||||
rtp = {
|
rtp = {
|
||||||
|
|||||||
62
config/src/nvim/lua/plugins/catppuccin.lua
Normal file
62
config/src/nvim/lua/plugins/catppuccin.lua
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
return {
|
||||||
|
"catppuccin/nvim",
|
||||||
|
lazy = true,
|
||||||
|
name = "catppuccin",
|
||||||
|
opts = {
|
||||||
|
flavour = "macchiato",
|
||||||
|
transparent_background = false,
|
||||||
|
integrations = {
|
||||||
|
aerial = true,
|
||||||
|
alpha = true,
|
||||||
|
cmp = true,
|
||||||
|
dashboard = true,
|
||||||
|
flash = true,
|
||||||
|
grug_far = true,
|
||||||
|
gitsigns = true,
|
||||||
|
headlines = true,
|
||||||
|
illuminate = true,
|
||||||
|
indent_blankline = { enabled = true },
|
||||||
|
leap = true,
|
||||||
|
lsp_trouble = true,
|
||||||
|
mason = true,
|
||||||
|
markdown = true,
|
||||||
|
mini = true,
|
||||||
|
native_lsp = {
|
||||||
|
enabled = true,
|
||||||
|
underlines = {
|
||||||
|
errors = { "undercurl" },
|
||||||
|
hints = { "undercurl" },
|
||||||
|
warnings = { "undercurl" },
|
||||||
|
information = { "undercurl" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
navic = { enabled = true, custom_bg = "lualine" },
|
||||||
|
neotest = true,
|
||||||
|
neotree = true,
|
||||||
|
noice = true,
|
||||||
|
notify = true,
|
||||||
|
semantic_tokens = true,
|
||||||
|
telescope = true,
|
||||||
|
treesitter = true,
|
||||||
|
treesitter_context = true,
|
||||||
|
which_key = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
specs = {
|
||||||
|
{
|
||||||
|
"akinsho/bufferline.nvim",
|
||||||
|
optional = true,
|
||||||
|
opts = function(_, opts)
|
||||||
|
if (vim.g.colors_name or ""):find("catppuccin") then
|
||||||
|
opts.highlights = require("catppuccin.groups.integrations.bufferline").get()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"LazyVim/LazyVim",
|
||||||
|
opts = {
|
||||||
|
colorscheme = "catppuccin-macchiato",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
28
flake.nix
28
flake.nix
@@ -12,36 +12,41 @@
|
|||||||
nixConfig = {
|
nixConfig = {
|
||||||
trusted-substituters = [
|
trusted-substituters = [
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
|
"https://palkx.cachix.org"
|
||||||
];
|
];
|
||||||
extra-trusted-public-keys = [
|
extra-trusted-public-keys = [
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
|
"palkx.cachix.org-1:qaQoL5CXpGzUbqsIvxUEL7wUhoIrjV0Q8M4HbJ8/8S4="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ {
|
outputs =
|
||||||
|
inputs@{
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
flake-utils,
|
flake-utils,
|
||||||
neovim-nightly-overlay,
|
neovim-nightly-overlay,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
flake-utils.lib.eachDefaultSystem (system: let
|
flake-utils.lib.eachDefaultSystem (
|
||||||
|
system:
|
||||||
|
let
|
||||||
overlayFlakeInputs = prev: final: {
|
overlayFlakeInputs = prev: final: {
|
||||||
neovim = neovim-nightly-overlay.packages.${system}.default.overrideAttrs (oa: {
|
neovim = neovim-nightly-overlay.packages.${system}.default.overrideAttrs (oa: {
|
||||||
nativeBuildInputs = oa.nativeBuildInputs ++ [final.libtermkey];
|
nativeBuildInputs = oa.nativeBuildInputs ++ [ final.libtermkey ];
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
overlayLazyVim = prev: final: {
|
overlayLazyVim = prev: final: { lazyVim = import ./packages/lazyVim.nix { pkgs = final; }; };
|
||||||
lazyVim = import ./packages/lazyVim.nix {
|
|
||||||
pkgs = final;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [overlayFlakeInputs overlayLazyVim];
|
overlays = [
|
||||||
|
overlayFlakeInputs
|
||||||
|
overlayLazyVim
|
||||||
|
];
|
||||||
};
|
};
|
||||||
in rec {
|
in
|
||||||
|
rec {
|
||||||
packages.lazyVim = pkgs.lazyVim;
|
packages.lazyVim = pkgs.lazyVim;
|
||||||
apps.lazyVim = {
|
apps.lazyVim = {
|
||||||
type = "app";
|
type = "app";
|
||||||
@@ -49,5 +54,6 @@
|
|||||||
};
|
};
|
||||||
packages.default = packages.lazyVim;
|
packages.default = packages.lazyVim;
|
||||||
apps.default = apps.lazyVim;
|
apps.default = apps.lazyVim;
|
||||||
});
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
{pkgs}: let
|
{ pkgs }:
|
||||||
config = import ../config {inherit pkgs;};
|
let
|
||||||
runtimeDeps = import ../runtimeDeps.nix {inherit pkgs;};
|
config = import ../config { inherit pkgs; };
|
||||||
|
runtimeDeps = import ../runtimeDeps.nix { inherit pkgs; };
|
||||||
in
|
in
|
||||||
pkgs.wrapNeovim pkgs.neovim {
|
pkgs.wrapNeovim pkgs.neovim {
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
withNodeJs = true;
|
withNodeJs = true;
|
||||||
withPython3 = true;
|
withPython3 = true;
|
||||||
withRuby = false;
|
withRuby = false;
|
||||||
extraMakeWrapperArgs = ''--prefix PATH : "${pkgs.lib.makeBinPath runtimeDeps.dependencies}" --set XDG_CONFIG_HOME "${config}"'';
|
extraMakeWrapperArgs = ''--prefix PATH : "${pkgs.lib.makeBinPath runtimeDeps.dependencies}" --set XDG_CONFIG_HOME "${config}"'';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
{pkgs}: {
|
{ pkgs }:
|
||||||
dependencies = with pkgs; [
|
{
|
||||||
nixd # nix lsp
|
dependencies =
|
||||||
alejandra # nix formatter
|
with pkgs;
|
||||||
statix # linter for nix
|
[
|
||||||
|
nixfmt-rfc-style # nix formatter
|
||||||
|
(terraform.overrideAttrs (oldAttrs: {
|
||||||
|
meta.license = lib.licenses.mpl20;
|
||||||
|
})) # terraform fmt
|
||||||
ripgrep
|
ripgrep
|
||||||
fd
|
fd
|
||||||
git
|
git
|
||||||
@@ -14,15 +18,17 @@
|
|||||||
go
|
go
|
||||||
ruby
|
ruby
|
||||||
luarocks
|
luarocks
|
||||||
zulu #java11
|
zulu # java11
|
||||||
fish
|
fish
|
||||||
fzf
|
fzf
|
||||||
perl536
|
perl536
|
||||||
perl536Packages.CPAN
|
perl536Packages.CPAN
|
||||||
unzip
|
unzip
|
||||||
tree-sitter
|
tree-sitter
|
||||||
gcc
|
|
||||||
gnumake
|
gnumake
|
||||||
lazygit
|
lazygit
|
||||||
];
|
python312
|
||||||
|
python312Packages.pip
|
||||||
|
]
|
||||||
|
++ (if pkgs.stdenv.hostPlatform.isDarwin then [ ] else [ gcc ]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user