summaryrefslogtreecommitdiff
path: root/neovim.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-07-13 20:12:35 -0400
committerseth <[email protected]>2024-07-14 13:47:39 -0400
commit5ec30e9a2b9047713c060c90a5e7930fafc2a3d6 (patch)
tree4c10736c3f5a69d2e214575f0ed1fc0e6d3f2f90 /neovim.nix
parentc9fb0eded5c69af78a1af12e5fdce7b347c40da3 (diff)
flatten plugin structure
Diffstat (limited to 'neovim.nix')
-rw-r--r--neovim.nix43
1 files changed, 33 insertions, 10 deletions
diff --git a/neovim.nix b/neovim.nix
index 096c32d..465f805 100644
--- a/neovim.nix
+++ b/neovim.nix
@@ -1,6 +1,7 @@
{
lib,
neovimUtils,
+ vimUtils,
vimPlugins,
wrapNeovimUnstable,
neovim-unwrapped,
@@ -14,11 +15,30 @@
shellcheck,
statix,
typos-lsp,
- vimPlugins-getchoo-nvim,
- ...
+ version,
}:
let
+ fs = lib.fileset;
+ vimPlugins-getchoo-nvim = vimUtils.buildVimPlugin {
+ pname = "getchoo-neovim-config";
+ inherit version;
+
+ src = fs.toSource {
+ root = ./.;
+ fileset = fs.intersection (fs.gitTracked ./.) (
+ fs.unions [
+ ./after
+ ./ftdetect
+ ./lua
+ ./plugin
+ ]
+ );
+ };
+ };
+
plugins = with vimPlugins; [
+ vimPlugins-getchoo-nvim
+
bufferline-nvim
# dependent on >
nvim-web-devicons
@@ -78,20 +98,23 @@ let
typos-lsp
];
- neovimConfig = neovimUtils.makeNeovimConfig { plugins = plugins ++ [ vimPlugins-getchoo-nvim ]; };
-in
-wrapNeovimUnstable neovim-unwrapped (
- neovimConfig
- // {
+ baseConfig = neovimUtils.makeNeovimConfig {
+ withRuby = false;
+ inherit plugins;
+ };
+
+ config = baseConfig // {
+ # init our configuration
luaRcContent = ''
require("getchoo")
'';
- wrapperArgs = neovimConfig.wrapperArgs ++ [
+ wrapperArgs = baseConfig.wrapperArgs ++ [
"--suffix"
"PATH"
":"
"${lib.makeBinPath extraPackages}"
];
- }
-)
+ };
+in
+wrapNeovimUnstable neovim-unwrapped config