chore: move nixvim to own repository
This commit is contained in:
parent
39e45be1a4
commit
2b9176ded1
21 changed files with 9 additions and 810 deletions
13
flake.lock
generated
13
flake.lock
generated
|
|
@ -491,14 +491,17 @@
|
||||||
"nixvim": "nixvim_2"
|
"nixvim": "nixvim_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1724674505,
|
||||||
"narHash": "sha256-QB4MH0l0Pb57F+ClG0NR9xZJdUExT/S1VDFey2bh2y8=",
|
"narHash": "sha256-QB4MH0l0Pb57F+ClG0NR9xZJdUExT/S1VDFey2bh2y8=",
|
||||||
"path": "nixvim",
|
"ref": "refs/heads/master",
|
||||||
"type": "path"
|
"rev": "f4ea68f9faf9221859a9d3f2a6a7dbecc38edeeb",
|
||||||
|
"revCount": 1,
|
||||||
|
"type": "git",
|
||||||
|
"url": "ssh://gitsrht@git.sourcehut.005540.xyz/~logistic-bot/nixvim"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "nixvim",
|
"type": "git",
|
||||||
"type": "path"
|
"url": "ssh://gitsrht@git.sourcehut.005540.xyz/~logistic-bot/nixvim"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixvim_2": {
|
"nixvim_2": {
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nixvim = {
|
nixvim = {
|
||||||
url = "path:nixvim";
|
url = "git+ssh://gitsrht@git.sourcehut.005540.xyz/~logistic-bot/nixvim";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
# Nixvim template
|
|
||||||
|
|
||||||
This template gives you a good starting point for configuring nixvim standalone.
|
|
||||||
|
|
||||||
## Configuring
|
|
||||||
|
|
||||||
To start configuring, just add or modify the nix files in `./config`.
|
|
||||||
If you add a new configuration file, remember to add it to the
|
|
||||||
[`config/default.nix`](./config/default.nix) file
|
|
||||||
|
|
||||||
## Testing your new configuration
|
|
||||||
|
|
||||||
To test your configuration simply run the following command
|
|
||||||
|
|
||||||
```
|
|
||||||
nix run .
|
|
||||||
```
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
plugins.bufferline = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
clipboard = {
|
|
||||||
providers.xsel.enable = true;
|
|
||||||
register = "unnamedplus";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
{
|
|
||||||
plugins.cmp = {
|
|
||||||
enable = true;
|
|
||||||
autoEnableSources = true;
|
|
||||||
settings = {
|
|
||||||
sources = [
|
|
||||||
{ name = "nvim_lsp"; }
|
|
||||||
{ name = "path"; }
|
|
||||||
{ name = "buffer"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
mapping = {
|
|
||||||
"<CR>" = "cmp.mapping.confirm({ select = true })";
|
|
||||||
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item({'i', 's'}))";
|
|
||||||
"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item({'i', 's'}))";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,188 +0,0 @@
|
||||||
{
|
|
||||||
plugins.dap = {
|
|
||||||
enable = true;
|
|
||||||
extensions = {
|
|
||||||
dap-ui.enable = true;
|
|
||||||
dap-virtual-text.enable = true;
|
|
||||||
};
|
|
||||||
adapters = {
|
|
||||||
executables = {
|
|
||||||
gdb = {
|
|
||||||
command = "gdb";
|
|
||||||
args = [ "-i" "dap" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
configurations = {
|
|
||||||
c = [
|
|
||||||
{
|
|
||||||
name = "Launch";
|
|
||||||
type = "gdb";
|
|
||||||
request = "launch";
|
|
||||||
program.__raw = # lua
|
|
||||||
''
|
|
||||||
function()
|
|
||||||
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. '/', "file")
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
args.__raw = # lua
|
|
||||||
''
|
|
||||||
function()
|
|
||||||
return vim.fn.input("Args: ", "", "file")
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
cwd = ''''${workspacefolder}'';
|
|
||||||
stopOnEntry = false;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
keymaps = [
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>db";
|
|
||||||
action = ":DapToggleBreakpoint<cr>";
|
|
||||||
options.desc = "Toggle Breakpoint";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>dc";
|
|
||||||
action = ":DapContinue<cr>";
|
|
||||||
options.desc = "Continue";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>da";
|
|
||||||
action = "<cmd>lua require('dap').continue({ before = get_args })<cr>";
|
|
||||||
options = {
|
|
||||||
silent = true;
|
|
||||||
desc = "Run with Args";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>dC";
|
|
||||||
action = "<cmd>lua require('dap').run_to_cursor()<cr>";
|
|
||||||
options = {
|
|
||||||
silent = true;
|
|
||||||
desc = "Run to cursor";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>dg";
|
|
||||||
action = "<cmd>lua require('dap').goto_()<cr>";
|
|
||||||
options = {
|
|
||||||
silent = true;
|
|
||||||
desc = "Go to line (no execute)";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>di";
|
|
||||||
action = ":DapStepInto<cr>";
|
|
||||||
options = {
|
|
||||||
silent = true;
|
|
||||||
desc = "Step into";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>dj";
|
|
||||||
action = "
|
|
||||||
<cmd>lua require('dap').down()<cr>
|
|
||||||
";
|
|
||||||
options = {
|
|
||||||
silent = true;
|
|
||||||
desc = "Down";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>dk";
|
|
||||||
action = "<cmd>lua require('dap').up()<cr>";
|
|
||||||
options = {
|
|
||||||
silent = true;
|
|
||||||
desc = "Up";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>dl";
|
|
||||||
action = "<cmd>lua require('dap').run_last()<cr>";
|
|
||||||
options = {
|
|
||||||
silent = true;
|
|
||||||
desc = "Run Last";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>do";
|
|
||||||
action = ":DapStepOut<cr>";
|
|
||||||
options = {
|
|
||||||
silent = true;
|
|
||||||
desc = "Step Out";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>dO";
|
|
||||||
action = ":DapStepOver<cr>";
|
|
||||||
options = {
|
|
||||||
silent = true;
|
|
||||||
desc = "Step Over";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>dp";
|
|
||||||
action = "<cmd>lua require('dap').pause()<cr>";
|
|
||||||
options = {
|
|
||||||
silent = true;
|
|
||||||
desc = "Pause";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>dr";
|
|
||||||
action = ":DapToggleRepl<cr>";
|
|
||||||
options = {
|
|
||||||
silent = true;
|
|
||||||
desc = "Toggle REPL";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>ds";
|
|
||||||
action = "<cmd>lua require('dap').session()<cr>";
|
|
||||||
options = {
|
|
||||||
silent = true;
|
|
||||||
desc = "Session";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>dt";
|
|
||||||
action = ":DapTerminate<cr>";
|
|
||||||
options = {
|
|
||||||
silent = true;
|
|
||||||
desc = "Terminate";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>du";
|
|
||||||
action.__raw = # lua
|
|
||||||
''
|
|
||||||
function()
|
|
||||||
require("dapui").toggle()
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
options = {
|
|
||||||
desc = "Toggle Debugger UI";
|
|
||||||
silent = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
{
|
|
||||||
# Import all your configuration modules here
|
|
||||||
imports = [
|
|
||||||
# base config
|
|
||||||
./options.nix
|
|
||||||
./clipboard.nix
|
|
||||||
|
|
||||||
# appearence
|
|
||||||
./bufferline.nix
|
|
||||||
./lualine.nix
|
|
||||||
./which-key.nix
|
|
||||||
./toggleterm.nix
|
|
||||||
|
|
||||||
# file and search utilities
|
|
||||||
./telescope.nix
|
|
||||||
./oil.nix
|
|
||||||
|
|
||||||
# language support & lsp
|
|
||||||
./lsp.nix
|
|
||||||
./treesitter.nix
|
|
||||||
./nix.nix
|
|
||||||
|
|
||||||
# debugging
|
|
||||||
./dap.nix
|
|
||||||
|
|
||||||
# autocompletion
|
|
||||||
./cmp.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
require('telescope-all-recent').setup({
|
|
||||||
default = {
|
|
||||||
disable = false;
|
|
||||||
use_cwd = true,
|
|
||||||
sorting = "frecency",
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
{
|
|
||||||
plugins.lsp = {
|
|
||||||
enable = true;
|
|
||||||
inlayHints = true;
|
|
||||||
servers = {
|
|
||||||
nixd.enable = true;
|
|
||||||
cssls.enable = true;
|
|
||||||
html.enable = true;
|
|
||||||
rust-analyzer = {
|
|
||||||
enable = true;
|
|
||||||
installRustc = true;
|
|
||||||
installCargo = true;
|
|
||||||
};
|
|
||||||
bashls.enable = true;
|
|
||||||
clangd.enable = true;
|
|
||||||
};
|
|
||||||
keymaps = {
|
|
||||||
diagnostic = {
|
|
||||||
"<C-n>" = "goto_next";
|
|
||||||
"<C-p>" = "goto_prev";
|
|
||||||
};
|
|
||||||
lspBuf = {
|
|
||||||
"K" = "hover";
|
|
||||||
"gD" = "references";
|
|
||||||
"gd" = "definition";
|
|
||||||
"gi" = "implementation";
|
|
||||||
"gt" = "type_definition";
|
|
||||||
"<C-,>" = "code_action";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
plugins.lualine = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
plugins.nix.enable = true;
|
|
||||||
}
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
# https://nix-community.github.io/nixvim/plugins/oil/
|
|
||||||
{
|
|
||||||
plugins.oil = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
delete_to_trash = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
{
|
|
||||||
opts = {
|
|
||||||
number = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
globals.mapleader = " ";
|
|
||||||
|
|
||||||
performance.byteCompileLua = {
|
|
||||||
enable = true;
|
|
||||||
nvimRuntime = true;
|
|
||||||
plugins = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
performance.combinePlugins = {
|
|
||||||
enable = true;
|
|
||||||
standalonePlugins = [
|
|
||||||
"hmts.nvim"
|
|
||||||
"nvim-treesitter"
|
|
||||||
"vimplugin-treesitter-grammar-nix"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,82 +0,0 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
plugins.telescope = {
|
|
||||||
enable = true;
|
|
||||||
extensions.file-browser = {
|
|
||||||
enable = true;
|
|
||||||
# explanation: see :help expand
|
|
||||||
# % is current file path, :p is full, :h is head (last component removed)
|
|
||||||
settings.cwd.__raw = "'%:p:h'";
|
|
||||||
};
|
|
||||||
settings.defaults.mappings = {
|
|
||||||
i = {
|
|
||||||
# close telescope when escape pressed in insert mode
|
|
||||||
"<esc>" = "close";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
keymaps = {
|
|
||||||
# files
|
|
||||||
"<leader><space>" = {
|
|
||||||
action = "find_files";
|
|
||||||
options = {
|
|
||||||
desc = "Find files in current directory";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"<leader>ff" = {
|
|
||||||
action = "file_browser";
|
|
||||||
options = {
|
|
||||||
desc = "Find files in current directory";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"<leader>fr" = {
|
|
||||||
action = "oldfiles";
|
|
||||||
options = {
|
|
||||||
desc = "Recent files";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# search
|
|
||||||
"<leader>/" = {
|
|
||||||
action = "live_grep";
|
|
||||||
options = {
|
|
||||||
desc = "Grep (root dir)";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# buffers
|
|
||||||
"<leader>b" = {
|
|
||||||
action = "buffers";
|
|
||||||
options = {
|
|
||||||
desc = "Buffer list";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# lsp
|
|
||||||
"<leader>sD" = {
|
|
||||||
action = "diagnostics";
|
|
||||||
options = {
|
|
||||||
desc = "Workspace diagnostics";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
extraPlugins = [
|
|
||||||
# frecency ranking
|
|
||||||
(pkgs.vimUtils.buildVimPlugin {
|
|
||||||
name = "telescope-all-recent";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "prochri";
|
|
||||||
repo = "telescope-all-recent.nvim";
|
|
||||||
rev = "267e9e5fd13a6e9a4cc6ffe00452d446d040401d";
|
|
||||||
hash = "sha256-EYU7HazKcABAGnJ3iqGqM2n+XTo64L1uqoopL/XuLFg=";
|
|
||||||
};
|
|
||||||
})
|
|
||||||
# dependency for telescope-all-recent: sqlite
|
|
||||||
pkgs.vimPlugins.sqlite-lua
|
|
||||||
];
|
|
||||||
extraConfigLua = (builtins.readFile ./extra_config.lua);
|
|
||||||
# use telescope in more places
|
|
||||||
plugins.dressing = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
require('telescope').find_files()
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
{
|
|
||||||
plugins.toggleterm = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
open_mapping = "[[<c-t>]]";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
plugins.treesitter = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
plugins.which-key.enable = true;
|
|
||||||
}
|
|
||||||
313
nixvim/flake.lock
generated
313
nixvim/flake.lock
generated
|
|
@ -1,313 +0,0 @@
|
||||||
{
|
|
||||||
"nodes": {
|
|
||||||
"devshell": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixvim",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1722113426,
|
|
||||||
"narHash": "sha256-Yo/3loq572A8Su6aY5GP56knpuKYRvM2a1meP9oJZCw=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "devshell",
|
|
||||||
"rev": "67cce7359e4cd3c45296fb4aaf6a19e2a9c757ae",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "devshell",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-compat": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1696426674,
|
|
||||||
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
|
||||||
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
|
||||||
"revCount": 57,
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.0.1/018afb31-abd1-7bff-a5e4-cff7e18efb7a/source.tar.gz"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-parts": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs-lib": "nixpkgs-lib"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1719994518,
|
|
||||||
"narHash": "sha256-pQMhCCHyQGRzdfAkdJ4cIWiw+JNuWsTX7f0ZYSyz0VY=",
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"rev": "9227223f6d922fee3c7b190b2cc238a99527bbb7",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-parts_2": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs-lib": [
|
|
||||||
"nixvim",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1719994518,
|
|
||||||
"narHash": "sha256-pQMhCCHyQGRzdfAkdJ4cIWiw+JNuWsTX7f0ZYSyz0VY=",
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"rev": "9227223f6d922fee3c7b190b2cc238a99527bbb7",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1710146030,
|
|
||||||
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"git-hooks": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": [
|
|
||||||
"nixvim",
|
|
||||||
"flake-compat"
|
|
||||||
],
|
|
||||||
"gitignore": "gitignore",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixvim",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"nixpkgs-stable": [
|
|
||||||
"nixvim",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1721042469,
|
|
||||||
"narHash": "sha256-6FPUl7HVtvRHCCBQne7Ylp4p+dpP3P/OYuzjztZ4s70=",
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "git-hooks.nix",
|
|
||||||
"rev": "f451c19376071a90d8c58ab1a953c6e9840527fd",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "git-hooks.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"gitignore": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixvim",
|
|
||||||
"git-hooks",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1709087332,
|
|
||||||
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "gitignore.nix",
|
|
||||||
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "gitignore.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"home-manager": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixvim",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1722407237,
|
|
||||||
"narHash": "sha256-wcpVHUc2nBSSgOM7UJSpcRbyus4duREF31xlzHV5T+A=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"rev": "58cef3796271aaeabaed98884d4abaab5d9d162d",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nix-darwin": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixvim",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1722082646,
|
|
||||||
"narHash": "sha256-od8dBWVP/ngg0cuoyEl/w9D+TCNDj6Kh4tr151Aax7w=",
|
|
||||||
"owner": "lnl7",
|
|
||||||
"repo": "nix-darwin",
|
|
||||||
"rev": "0413754b3cdb879ba14f6e96915e5fdf06c6aab6",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "lnl7",
|
|
||||||
"repo": "nix-darwin",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1721924956,
|
|
||||||
"narHash": "sha256-Sb1jlyRO+N8jBXEX9Pg9Z1Qb8Bw9QyOgLDNMEpmjZ2M=",
|
|
||||||
"owner": "nixos",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "5ad6a14c6bf098e98800b091668718c336effc95",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nixos",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs-lib": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1719876945,
|
|
||||||
"narHash": "sha256-Fm2rDDs86sHy0/1jxTOKB1118Q0O3Uc7EC0iXvXKpbI=",
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://github.com/NixOS/nixpkgs/archive/5daf0514482af3f97abaefc78a6606365c9108e2.tar.gz"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://github.com/NixOS/nixpkgs/archive/5daf0514482af3f97abaefc78a6606365c9108e2.tar.gz"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixvim": {
|
|
||||||
"inputs": {
|
|
||||||
"devshell": "devshell",
|
|
||||||
"flake-compat": "flake-compat",
|
|
||||||
"flake-parts": "flake-parts_2",
|
|
||||||
"git-hooks": "git-hooks",
|
|
||||||
"home-manager": "home-manager",
|
|
||||||
"nix-darwin": "nix-darwin",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"nuschtosSearch": "nuschtosSearch",
|
|
||||||
"treefmt-nix": "treefmt-nix"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1722492816,
|
|
||||||
"narHash": "sha256-aZe7oSm/+GM1whS6bxZy+DJgbcy8rDIkygBA0owCvmU=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "nixvim",
|
|
||||||
"rev": "820f8d58eafd7121989fea3ae9e71f29699d856b",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "nixvim",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nuschtosSearch": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": "flake-utils",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixvim",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1722144272,
|
|
||||||
"narHash": "sha256-olZbfaEdd+zNPuuyYcYGaRzymA9rOmth8yXOlVm+LUs=",
|
|
||||||
"owner": "NuschtOS",
|
|
||||||
"repo": "search",
|
|
||||||
"rev": "16565307c267ec219c2b5d3494ba66df08e7d403",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NuschtOS",
|
|
||||||
"repo": "search",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-parts": "flake-parts",
|
|
||||||
"nixpkgs": "nixpkgs",
|
|
||||||
"nixvim": "nixvim"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"treefmt-nix": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixvim",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1722330636,
|
|
||||||
"narHash": "sha256-uru7JzOa33YlSRwf9sfXpJG+UAV+bnBEYMjrzKrQZFw=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "treefmt-nix",
|
|
||||||
"rev": "768acdb06968e53aa1ee8de207fd955335c754b7",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "treefmt-nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "root",
|
|
||||||
"version": 7
|
|
||||||
}
|
|
||||||
|
|
@ -1,50 +0,0 @@
|
||||||
{
|
|
||||||
description = "A nixvim configuration";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
||||||
nixvim = {
|
|
||||||
url = "github:nix-community/nixvim";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs =
|
|
||||||
{ nixvim, flake-parts, ... }@inputs:
|
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
||||||
systems = [
|
|
||||||
"x86_64-linux"
|
|
||||||
"aarch64-linux"
|
|
||||||
"x86_64-darwin"
|
|
||||||
"aarch64-darwin"
|
|
||||||
];
|
|
||||||
|
|
||||||
perSystem =
|
|
||||||
{ pkgs, system, ... }:
|
|
||||||
let
|
|
||||||
nixvimLib = nixvim.lib.${system};
|
|
||||||
nixvim' = nixvim.legacyPackages.${system};
|
|
||||||
nixvimModule = {
|
|
||||||
inherit pkgs;
|
|
||||||
module = import ./config; # import the module directly
|
|
||||||
# You can use `extraSpecialArgs` to pass additional arguments to your module files
|
|
||||||
extraSpecialArgs = {
|
|
||||||
# inherit (inputs) foo;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
nvim = nixvim'.makeNixvimWithModule nixvimModule;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
checks = {
|
|
||||||
# Run `nix flake check .` to verify that your config is not broken
|
|
||||||
default = nixvimLib.check.mkTestDerivationFromNixvimModule nixvimModule;
|
|
||||||
};
|
|
||||||
|
|
||||||
packages = {
|
|
||||||
# Lets you run `nix run .` to start nixvim
|
|
||||||
default = nvim;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue