Skip to content

Commit

Permalink
nightly overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
siph committed Mar 14, 2024
1 parent 8cb3a96 commit 9380997
Show file tree
Hide file tree
Showing 4 changed files with 206 additions and 18 deletions.
8 changes: 7 additions & 1 deletion config/core/core.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
{pkgs, ...}: {
config = {
package = pkgs.neovim;

globals = {
mapleader = " ";
loaded_ruby_provider = 0;
loaded_perl_provider = 0;
loaded_python_provider = 0;
};

keymaps = [
{
mode = "n";
Expand Down Expand Up @@ -41,9 +44,11 @@
action = "<C-w>l";
}
];

clipboard = {
register = "unnamedplus";
};

options = {
autoindent = true;
expandtab = true;
Expand All @@ -67,6 +72,7 @@
termguicolors = true;
updatetime = 100;
};

autoCmd = [
{
event = "FileType";
Expand Down
208 changes: 192 additions & 16 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
nix-colors.url = "github:misterio77/nix-colors";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
Expand All @@ -25,6 +26,7 @@

outputs = {
flake-parts,
neovim-nightly-overlay,
nix-colors,
nixpkgs,
nixvim,
Expand Down Expand Up @@ -64,7 +66,7 @@
inherit system;
overlays = builtins.attrValues {
default = import ./overlay {
inherit nix-colors nixvim tree-sitter-nu tree-sitter-surrealdb lib system;
inherit neovim-nightly-overlay nix-colors nixvim tree-sitter-nu tree-sitter-surrealdb lib system;
};
};
};
Expand Down
4 changes: 4 additions & 0 deletions overlay/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
lib,
neovim-nightly-overlay,
nix-colors,
nixvim,
tree-sitter-nu,
Expand All @@ -13,11 +14,14 @@
};

modifications = final: prev: {
inherit (neovim-nightly-overlay.packages.${prev.system}) neovim;

tree-sitter-grammars = {
tree-sitter-nu = final.callPackage ../pkgs/tree-sitter-grammars/nushell.nix {
inherit (final.tree-sitter) buildGrammar;
inherit tree-sitter-nu;
};

tree-sitter-surrealdb = final.callPackage ../pkgs/tree-sitter-grammars/surrealdb.nix {
inherit (final.tree-sitter) buildGrammar;
inherit tree-sitter-surrealdb;
Expand Down

0 comments on commit 9380997

Please sign in to comment.