feat: update nvim package
All checks were successful
check-flake / build (push) Successful in 17m41s

This commit is contained in:
2024-11-14 19:53:26 +02:00
parent e24df7ff1f
commit aef12de964
7 changed files with 156 additions and 79 deletions

View File

@@ -1,4 +1,4 @@
{pkgs}: { pkgs }:
pkgs.stdenv.mkDerivation { pkgs.stdenv.mkDerivation {
name = "nvim-config"; name = "nvim-config";
src = ./src; src = ./src;

View File

@@ -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 = {

View 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",
},
},
}

View File

@@ -1,10 +1,10 @@
return { return {
"folke/tokyonight.nvim", "folke/tokyonight.nvim",
opts = { opts = {
transparent = true, transparent = true,
styles = { styles = {
sidebars = "transparent", sidebars = "transparent",
floats = "transparent", floats = "transparent",
}, },
}, },
} }

View File

@@ -12,42 +12,48 @@
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 =
nixpkgs, inputs@{
flake-utils, nixpkgs,
neovim-nightly-overlay, flake-utils,
... neovim-nightly-overlay,
}: ...
flake-utils.lib.eachDefaultSystem (system: let }:
overlayFlakeInputs = prev: final: { flake-utils.lib.eachDefaultSystem (
neovim = neovim-nightly-overlay.packages.${system}.default.overrideAttrs (oa: { system:
nativeBuildInputs = oa.nativeBuildInputs ++ [final.libtermkey]; let
}); overlayFlakeInputs = prev: final: {
}; neovim = neovim-nightly-overlay.packages.${system}.default.overrideAttrs (oa: {
nativeBuildInputs = oa.nativeBuildInputs ++ [ final.libtermkey ];
overlayLazyVim = prev: final: { });
lazyVim = import ./packages/lazyVim.nix {
pkgs = final;
}; };
};
pkgs = import nixpkgs { overlayLazyVim = prev: final: { lazyVim = import ./packages/lazyVim.nix { pkgs = final; }; };
inherit system;
overlays = [overlayFlakeInputs overlayLazyVim]; pkgs = import nixpkgs {
}; inherit system;
in rec { overlays = [
packages.lazyVim = pkgs.lazyVim; overlayFlakeInputs
apps.lazyVim = { overlayLazyVim
type = "app"; ];
program = "${packages.default}/bin/nvim"; };
}; in
packages.default = packages.lazyVim; rec {
apps.default = apps.lazyVim; packages.lazyVim = pkgs.lazyVim;
}); apps.lazyVim = {
type = "app";
program = "${packages.default}/bin/nvim";
};
packages.default = packages.lazyVim;
apps.default = apps.lazyVim;
}
);
} }

View File

@@ -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}"'';
} }

View File

@@ -1,28 +1,34 @@
{pkgs}: { { pkgs }:
dependencies = with pkgs; [ {
nixd # nix lsp dependencies =
alejandra # nix formatter with pkgs;
statix # linter for nix [
ripgrep nixfmt-rfc-style # nix formatter
fd (terraform.overrideAttrs (oldAttrs: {
git meta.license = lib.licenses.mpl20;
curl # needed to fetch titles from urls })) # terraform fmt
wget ripgrep
cargo fd
php82 git
php82Packages.composer curl # needed to fetch titles from urls
go wget
ruby cargo
luarocks php82
zulu #java11 php82Packages.composer
fish go
fzf ruby
perl536 luarocks
perl536Packages.CPAN zulu # java11
unzip fish
tree-sitter fzf
gcc perl536
gnumake perl536Packages.CPAN
lazygit unzip
]; tree-sitter
gnumake
lazygit
python312
python312Packages.pip
]
++ (if pkgs.stdenv.hostPlatform.isDarwin then [ ] else [ gcc ]);
} }