From 55ce46bcf5c755bc34af3fc6d2147ff650f832f3 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Mon, 21 Apr 2025 09:36:51 +0200 Subject: [PATCH] feat(neovim): use builtin modules. --- .../cross-platform/home-manager/neovim.nix | 37 +++++-------------- 1 file changed, 10 insertions(+), 27 deletions(-) diff --git a/modules/cross-platform/home-manager/neovim.nix b/modules/cross-platform/home-manager/neovim.nix index 2a13216..fc3a547 100644 --- a/modules/cross-platform/home-manager/neovim.nix +++ b/modules/cross-platform/home-manager/neovim.nix @@ -217,27 +217,19 @@ in { } ]; + navigation.harpoon.enable = true; + + utility.snacks-nvim = { + enable = true; + setupOpts = { + bigfile = {enabled = true;}; + quickfile = {enabled = true;}; + }; + }; + extraLuaFiles = [./nvim/autocommands.lua]; extraPlugins = with pkgs.vimPlugins; { - harpoon = { - package = harpoon2; - setup = '' - local harpoon = require("harpoon") - - -- REQUIRED - harpoon:setup() - -- REQUIRED - - vim.keymap.set("n", "a", function() harpoon:list():add() end) - vim.keymap.set("n", "", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) - - vim.keymap.set("n", "", function() harpoon:list():select(1) end) - vim.keymap.set("n", "", function() harpoon:list():select(2) end) - vim.keymap.set("n", "", function() harpoon:list():select(3) end) - vim.keymap.set("n", "", function() harpoon:list():select(4) end) - ''; - }; friendly-snippets = { package = friendly-snippets; }; @@ -259,15 +251,6 @@ in { require('markdown-table-mode').setup() ''; }; - snacks-nvim = { - package = snacks-nvim; - setup = '' - require('snacks').setup({ - bigfile = {enabled = true}, - quickfile = {enabled = true}, - }) - ''; - }; helpview-nvim.package = helpview-nvim; }; };