feat(nvim): use nixpkgs nvim and make overlay of dracula-nvim
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
1cfbf18866
commit
cf728f5fa3
6 changed files with 17 additions and 15 deletions
|
@ -2,16 +2,17 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
coc-stylelintplus-flake,
|
nvim-theme-src,
|
||||||
tree-sitter-hyprlang-flake,
|
coc-stylelintplus,
|
||||||
|
tree-sitter-hyprlang,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.vars) neovimIde;
|
inherit (config.vars) neovimIde;
|
||||||
inherit (lib) fileContents optionalAttrs optionals;
|
inherit (lib) fileContents optionalAttrs optionals;
|
||||||
|
|
||||||
javaSdk = pkgs.temurin-bin-17;
|
javaSdk = pkgs.temurin-bin-17;
|
||||||
nvim-treesitter-hyprlang = tree-sitter-hyprlang-flake.packages.${pkgs.system}.default;
|
nvim-treesitter-hyprlang = tree-sitter-hyprlang.packages.${pkgs.system}.default;
|
||||||
coc-stylelintplus = coc-stylelintplus-flake.packages.${pkgs.system}.default;
|
coc-stylelintplus-flake = coc-stylelintplus.packages.${pkgs.system}.default;
|
||||||
in {
|
in {
|
||||||
home = optionalAttrs neovimIde {
|
home = optionalAttrs neovimIde {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
@ -41,7 +42,6 @@ in {
|
||||||
|
|
||||||
neovim = {
|
neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.neovim-nightly;
|
|
||||||
withNodeJs = true;
|
withNodeJs = true;
|
||||||
withPython3 = true;
|
withPython3 = true;
|
||||||
withRuby = false;
|
withRuby = false;
|
||||||
|
@ -157,7 +157,9 @@ in {
|
||||||
fugitive
|
fugitive
|
||||||
|
|
||||||
{
|
{
|
||||||
plugin = dracula-nvim;
|
plugin = dracula-nvim.overrideAttrs {
|
||||||
|
src = nvim-theme-src;
|
||||||
|
};
|
||||||
type = "viml";
|
type = "viml";
|
||||||
config = fileContents ./plugins/dracula.vim;
|
config = fileContents ./plugins/dracula.vim;
|
||||||
}
|
}
|
||||||
|
@ -194,7 +196,7 @@ in {
|
||||||
coc-eslint
|
coc-eslint
|
||||||
coc-java
|
coc-java
|
||||||
coc-sh
|
coc-sh
|
||||||
coc-stylelintplus
|
coc-stylelintplus-flake
|
||||||
{
|
{
|
||||||
plugin = coc-snippets;
|
plugin = coc-snippets;
|
||||||
type = "viml";
|
type = "viml";
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"https://cache.nixos.org"
|
"https://cache.nixos.org"
|
||||||
"https://nixpkgs-wayland.cachix.org"
|
"https://nixpkgs-wayland.cachix.org"
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
# Neovim and stuff
|
# Nix-community
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
# Nh
|
# Nh
|
||||||
"https://viperml.cachix.org"
|
"https://viperml.cachix.org"
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
# Nixpkgs-Wayland
|
# Nixpkgs-Wayland
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
|
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
|
||||||
# Neovim and stuff
|
# Nix-community
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
# Nh
|
# Nh
|
||||||
"viperml.cachix.org-1:qZhKBMTfmcLL+OG6fj/hzsMEedgKvZVFRRAhq7j8Vh8="
|
"viperml.cachix.org-1:qZhKBMTfmcLL+OG6fj/hzsMEedgKvZVFRRAhq7j8Vh8="
|
||||||
|
|
|
@ -20,16 +20,18 @@
|
||||||
'';
|
'';
|
||||||
|
|
||||||
substituters = [
|
substituters = [
|
||||||
# Neovim and stuff
|
# Nix-community
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
|
|
||||||
|
# FIXME: cache doesn't work
|
||||||
# Personal config cache
|
# Personal config cache
|
||||||
"https://cache.nelim.org"
|
# "https://cache.nelim.org"
|
||||||
];
|
];
|
||||||
trustedPublicKeys = [
|
trustedPublicKeys = [
|
||||||
# Neovim and stuff
|
# Nix-community
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
# Personal config cache
|
# Personal config cache
|
||||||
"cache.nelim.org:JmFqkUdH11EA9EZOFAGVHuRYp7EbsdJDHvTQzG2pPyY="
|
# "cache.nelim.org:JmFqkUdH11EA9EZOFAGVHuRYp7EbsdJDHvTQzG2pPyY="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
neovim-flake,
|
|
||||||
nixpkgs-wayland,
|
nixpkgs-wayland,
|
||||||
...
|
...
|
||||||
} @ inputs: [
|
} @ inputs: [
|
||||||
|
@ -8,6 +7,5 @@
|
||||||
(import ./spotifywm inputs)
|
(import ./spotifywm inputs)
|
||||||
(import ./squeekboard)
|
(import ./squeekboard)
|
||||||
|
|
||||||
neovim-flake.overlay
|
|
||||||
nixpkgs-wayland.overlay
|
nixpkgs-wayland.overlay
|
||||||
]
|
]
|
||||||
|
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
Loading…
Reference in a new issue