From fd7ab616ca6367ebd366604ecf5e9e08ac664055 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Mon, 8 Dec 2025 14:45:21 +0000 Subject: [PATCH] Updated local config plugins --- lua/plugins/mini.lua | 4 +++- lua/plugins/utils.lua | 35 +++++++++++++++++++---------------- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/lua/plugins/mini.lua b/lua/plugins/mini.lua index 447aa7e..58cbf4e 100644 --- a/lua/plugins/mini.lua +++ b/lua/plugins/mini.lua @@ -1,5 +1,5 @@ return { -- Mini is so varied it's hard to categorise. So i dumped my mini installs here - { -- Collection of various small independent plugins/modules + { -- Collection of various small independent plugins/modules "echasnovski/mini.nvim", config = function() -- Better Around/Inside textobjects @@ -26,6 +26,8 @@ return { -- Mini is so varied it's hard to categorise. So i dumped my mini insta INFO = { duration = 3000 }, }) + require("mini.clue").setup() -- For per-project/dynamic plugin loading + -- Some other mini.nvim plugins that look useful to me require("mini.clue").setup() require("mini.visits").setup() diff --git a/lua/plugins/utils.lua b/lua/plugins/utils.lua index 141b2e3..9b88843 100644 --- a/lua/plugins/utils.lua +++ b/lua/plugins/utils.lua @@ -1,26 +1,29 @@ return { -- General programming utilities go here -- Tools for configuration and plugin development - { "folke/neoconf.nvim", cmd = "Neoconf" }, { - "folke/neodev.nvim", + "klen/nvim-config-local", + lazy = false, -- Load immediately to ensure it catches the initial working directory opts = { - override = function(root_dir, library) - if - root_dir:find( - os.getenv("XDG_CONFIG_HOME") - .. "/nix/home-manager/core/dotfiles/dot_config/nvim/", - 1, - true - ) == 1 - then - library.enabled = true - library.plugins = true - end - end, + config_files = { ".nvim.lua", ".nvimrc", ".exrc" }, + hashfile = vim.fn.stdpath("data") .. "/config-local", + autocommands_create = true, + commands_create = true, + silent = false, + lookup_parents = false, + }, + }, + { + "folke/lazydev.nvim", + ft = "lua", + opts = { + library = { + "~/.config/nvim/", + "~/.config/nix/home-manager/core/dotfiles/dot_config/nvim/", + }, }, }, -- Privilege escalation plugin - { "lambdalisue/suda.vim", event = "VeryLazy" }, + { "lambdalisue/suda.vim", event = "VeryLazy" }, { "folke/trouble.nvim", cmd = { "Trouble" },