chore: Migrated most plugins to mini.nvim 7574a2fa
Steve Simkins · 2025-07-27 19:53 10 file(s) · +66 −430
nvim/lazy-lock.json +1 −0
8 8
  "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
9 9
  "lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
10 10
  "lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" },
11 +
  "mini.nvim": { "branch": "main", "commit": "94cae4660a8b2d95dbbd56e1fbc6fcfa2716d152" },
11 12
  "neo-tree.nvim": { "branch": "v3.x", "commit": "cea666ef965884414b1b71f6b39a537f9238bdb2" },
12 13
  "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
13 14
  "nvim-surround": { "branch": "main", "commit": "7a7a78a52219a3312c1fcabf880cea07a7956a5f" },
nvim/lua/config/autocmds.lua +7 −7
64 64
65 65
})
66 66
67 -
vim.api.nvim_create_autocmd("VimEnter", {
68 -
  callback = function()
69 -
    if vim.fn.argv(0) == "" then
70 -
      require("telescope.builtin").find_files()
71 -
    end
72 -
  end,
73 -
})
67 +
-- vim.api.nvim_create_autocmd("VimEnter", {
68 +
--   callback = function()
69 +
--     if vim.fn.argv(0) == "" then
70 +
--       require("telescope.builtin").find_files()
71 +
--     end
72 +
--   end,
73 +
-- })
74 74
75 75
76 76
--[[ require("conform").setup({
nvim/lua/config/keymaps.lua +10 −0
58 58
map("n", "<leader>c", ":bd<cr>", opts)
59 59
60 60
map("n", "<leader>dd", "<cmd>lua vim.diagnostic.open_float({ border = 'rounded' })<CR>", opts)
61 +
62 +
map("i", "<C-j>", 'pumvisible() ? "\\<C-n>" : "\\<C-j>"', { expr = true, noremap = true, silent = true })
63 +
map("i", "<C-k>", 'pumvisible() ? "\\<C-p>" : "\\<C-k>"', { expr = true, noremap = true, silent = true })
64 +
65 +
map("n", "<leader>e", "<cmd>lua MiniFiles.open()<CR>", opts)
66 +
67 +
map("n", "<leader>o", "<cmd>Pick buffers<CR>", opts)
68 +
map("n", "<leader>f", "<cmd>Pick files<CR>", opts)
69 +
map("n", "<leader>/", "<cmd>Pick grep_live<CR>", opts)
70 +
map("n", "<leader>hh", "<cmd>Pick help<CR>", opts)
nvim/lua/plugins/blink.lua (deleted) +0 −86
1 -
return {
2 -
    { "L3MON4D3/LuaSnip", keys = {} },
3 -
    {
4 -
        "saghen/blink.cmp",
5 -
        event = "InsertEnter", -- Only load when entering insert mode
6 -
        dependencies = {
7 -
            "rafamadriz/friendly-snippets",
8 -
        },
9 -
        version = "*",
10 -
        config = function()
11 -
            require("blink.cmp").setup({
12 -
                snippets = { preset = "default" },
13 -
                signature = { enabled = true },
14 -
                appearance = {
15 -
                    use_nvim_cmp_as_default = false,
16 -
                    nerd_font_variant = "normal",
17 -
                },
18 -
                sources = {
19 -
                    default = { "lsp", "path", "snippets", "buffer" },
20 -
                    providers = {
21 -
                        cmdline = {
22 -
                            min_keyword_length = 2,
23 -
                        },
24 -
                    },
25 -
                },
26 -
                keymap = {
27 -
                    -- Accept suggestion with Tab or Enter
28 -
                    ["<Tab>"] = { "accept", "fallback" },
29 -
                    ["<CR>"] = { "accept", "fallback" },
30 -
31 -
                    -- Navigate completion menu with Ctrl+j/k
32 -
                    ["<C-j>"] = { "select_next", "fallback" },
33 -
                    ["<C-k>"] = { "select_prev", "fallback" },
34 -
35 -
                    -- Alternative: Use arrow keys for navigation
36 -
                    ["<Down>"] = { "select_next", "fallback" },
37 -
                    ["<Up>"] = { "select_prev", "fallback" },
38 -
39 -
                    -- Show completion menu manually
40 -
                    ["<C-Space>"] = { "show", "show_documentation", "hide_documentation" },
41 -
42 -
                    -- Hide completion menu
43 -
                    ["<C-e>"] = { "hide", "fallback" },
44 -
45 -
                    -- Scroll documentation
46 -
                    ["<C-u>"] = { "scroll_documentation_up", "fallback" },
47 -
                    ["<C-d>"] = { "scroll_documentation_down", "fallback" },
48 -
49 -
                    -- Remove the disabled Ctrl+f mapping
50 -
                    ["<C-f>"] = {},
51 -
                },
52 -
                cmdline = {
53 -
                    enabled = false,
54 -
                    completion = { menu = { auto_show = true } },
55 -
                    keymap = {
56 -
                        ["<CR>"] = { "accept_and_enter", "fallback" },
57 -
                    },
58 -
                },
59 -
                completion = {
60 -
                    menu = {
61 -
                        border = nil,
62 -
                        scrolloff = 1,
63 -
                        scrollbar = false,
64 -
                        draw = {
65 -
                            columns = {
66 -
                                { "kind_icon" },
67 -
                                { "label",      "label_description", gap = 1 },
68 -
                                { "kind" },
69 -
                                { "source_name" },
70 -
                            },
71 -
                        },
72 -
                    },
73 -
                    documentation = {
74 -
                        window = {
75 -
                            border = nil,
76 -
                            scrollbar = false,
77 -
                            winhighlight = 'Normal:BlinkCmpDoc,FloatBorder:BlinkCmpDocBorder,EndOfBuffer:BlinkCmpDoc',
78 -
                        },
79 -
                        auto_show = true,
80 -
                        auto_show_delay_ms = 500,
81 -
                    },
82 -
                },
83 -
            })
84 -
        end,
85 -
    },
86 -
}
nvim/lua/plugins/comments.lua (deleted) +0 −8
1 -
return {
2 -
  "numToStr/Comment.nvim",
3 -
  opts = {},
4 -
  config = function()
5 -
    require("Comment").setup()
6 -
  end,
7 -
}
8 -
nvim/lua/plugins/lualine.lua (deleted) +0 −80
1 -
return {
2 -
  "nvim-lualine/lualine.nvim",
3 -
  enabled = true,
4 -
  lazy = true,
5 -
  event = { "BufReadPost", "BufNewFile", "VeryLazy" },
6 -
  config = function()
7 -
    require("lualine").setup({
8 -
      options = {
9 -
        theme = "auto",
10 -
        icons_enabled = true,
11 -
        section_separators = "",
12 -
        component_separators = "",
13 -
        disabled_filetypes = {
14 -
          statusline = {
15 -
            "help",
16 -
            "startify",
17 -
            "dashboard",
18 -
            "neo-tree",
19 -
            "packer",
20 -
            "neogitstatus",
21 -
            "NvimTree",
22 -
            "Trouble",
23 -
            "alpha",
24 -
            "lir",
25 -
            "Outline",
26 -
            "spectre_panel",
27 -
            "toggleterm",
28 -
            "qf",
29 -
          },
30 -
          winbar = {},
31 -
        },
32 -
      },
33 -
      sections = {
34 -
        lualine_a = {},
35 -
        lualine_b = {},
36 -
        lualine_c = {
37 -
          -- "filename",
38 -
          {
39 -
            "filetype",
40 -
            icon_only = true,
41 -
            separator = "",
42 -
            padding = {
43 -
              left = 1,
44 -
              right = 0,
45 -
            },
46 -
          },
47 -
          {
48 -
            "filename",
49 -
            path = 1,
50 -
            symbols = {
51 -
              modified = "  ",
52 -
              readonly = "",
53 -
              unnamed = "",
54 -
            },
55 -
          },
56 -
          { "diagnostics", sources = { "nvim_lsp" }, symbols = { error = " ", warn = " ", info = " " } },
57 -
          { "diff" },
58 -
          { "searchcount" },
59 -
        },
60 -
        lualine_x = { { "b:gitsigns_head", icon = "" } },
61 -
        lualine_y = { "progress" },
62 -
        lualine_z = {
63 -
          -- function()
64 -
          --   return " " .. os.date("%R")
65 -
          -- end,
66 -
        },
67 -
      },
68 -
      inactive_sections = {
69 -
        lualine_a = {},
70 -
        lualine_b = {},
71 -
        lualine_c = { "filename" },
72 -
        lualine_x = { "location" },
73 -
        lualine_y = {},
74 -
        lualine_z = {},
75 -
      },
76 -
      tabline = {},
77 -
      extensions = { "neo-tree", "lazy" },
78 -
    })
79 -
  end,
80 -
}
nvim/lua/plugins/mini.lua (added) +48 −0
1 +
return {
2 +
    'echasnovski/mini.nvim',
3 +
    version = '*',
4 +
    config = function()
5 +
        local win_config = function()
6 +
            local height = math.floor(0.618 * vim.o.lines)
7 +
            local width = math.floor(0.618 * vim.o.columns)
8 +
            return {
9 +
                anchor = 'NW',
10 +
                height = height,
11 +
                width = width,
12 +
                row = math.floor(0.5 * (vim.o.lines - height)),
13 +
                col = math.floor(0.5 * (vim.o.columns - width)),
14 +
            }
15 +
        end
16 +
        require("mini.pick").setup({
17 +
            mappings = {
18 +
                move_down = '<C-j>',
19 +
                move_up   = '<C-k>',
20 +
            },
21 +
            window = { config = win_config }
22 +
        })
23 +
24 +
        require("mini.comment").setup({
25 +
            mappings = {
26 +
                comment = 'gb',
27 +
                comment_visual = 'gb',
28 +
                textobject = 'gb'
29 +
            }
30 +
        })
31 +
32 +
        require("mini.completion").setup({
33 +
            mappings = {
34 +
                scroll_down = '<C-j>',
35 +
                scroll_up = '<C-k>',
36 +
            },
37 +
        })
38 +
39 +
        require('mini.files').setup()
40 +
41 +
        require('mini.surround').setup({
42 +
            mappings = {
43 +
                replace = 'cs', -- Replace surrounding
44 +
            },
45 +
        })
46 +
        require('mini.statusline').setup()
47 +
    end
48 +
}
nvim/lua/plugins/neotree.lua (deleted) +0 −47
1 -
return {
2 -
	"nvim-neo-tree/neo-tree.nvim",
3 -
	branch = "v3.x",
4 -
	dependencies = {
5 -
		"nvim-lua/plenary.nvim",
6 -
		"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
7 -
		"MunifTanjim/nui.nvim",
8 -
		-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
9 -
	},
10 -
	config = function()
11 -
		local opts = { noremap = true, silent = true }
12 -
		local map = vim.api.nvim_set_keymap
13 -
		map("n", "<leader>e", ":Neotree toggle<CR>", opts)
14 -
		require("neo-tree").setup({
15 -
			popup_border_style = "rounded",
16 -
			enable_git_status = true,
17 -
			window = {
18 -
				position = "float",
19 -
			},
20 -
			filesystem = {
21 -
				filtered_items = {
22 -
					hide_dotfiles = false,
23 -
					always_show = {
24 -
						"*.env",
25 -
					},
26 -
				},
27 -
			},
28 -
			default_component_configs = {
29 -
				git_status = {
30 -
					symbols = {
31 -
						-- Change type
32 -
						added = "", -- or "✚", but this is redundant info if you use git_status_colors on the name
33 -
						modified = "", -- or "", but this is redundant info if you use git_status_colors on the name
34 -
						deleted = "✖", -- this can only be used in the git_status source
35 -
						renamed = "󰁕", -- this can only be used in the git_status source
36 -
						-- Status type
37 -
						untracked = "",
38 -
						ignored = "",
39 -
						unstaged = "󰄱",
40 -
						staged = "",
41 -
						conflict = "",
42 -
					},
43 -
				},
44 -
			},
45 -
		})
46 -
	end,
47 -
}
nvim/lua/plugins/nvim-surround.lua (deleted) +0 −9
1 -
return {
2 -
    "kylechui/nvim-surround",
3 -
    version = "*", -- Use for stability; omit to use `main` branch for the latest features
4 -
    config = function()
5 -
        require("nvim-surround").setup({
6 -
            -- Configuration here, or leave empty to use defaults
7 -
        })
8 -
    end
9 -
}
nvim/lua/plugins/telescope.lua (deleted) +0 −193
1 -
return {
2 -
  "nvim-telescope/telescope.nvim",
3 -
  tag = "0.1.5",
4 -
  config = function()
5 -
    local builtin = require('telescope.builtin')
6 -
    vim.keymap.set('n', '<leader>f', builtin.find_files, {})
7 -
    vim.keymap.set('n', '<leader>/', builtin.live_grep, {})
8 -
    vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
9 -
    vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})
10 -
    vim.keymap.set('n', '<leader>sd', ":Telescope diagnostics bufnr=0<cr>", {})
11 -
    vim.keymap.set('n', "<leader>sD", "<cmd>Telescope diagnostics<cr>", {})
12 -
    vim.keymap.set('n', "<Leader>o", ":Telescope buffers theme=dropdown<CR>", {})
13 -
    vim.keymap.set('n', "<leader>gc", "<cmd>Telescope git_commits<CR>", {})
14 -
    vim.keymap.set('n', "<leader>gs", "<cmd>Telescope git_status<CR>", {})
15 -
    vim.keymap.set('n', "<leader>sb", "<cmd>Telescope current_buffer_fuzzy_find<cr>", {})
16 -
17 -
18 -
19 -
    local telescope = require("telescope")
20 -
    local actions = require("telescope.actions")
21 -
    telescope.setup({
22 -
      file_ignore_patterns = { "%.git/.", "node_modules" },
23 -
      defaults = {
24 -
        mappings = {
25 -
          i = {
26 -
            ["<esc>"] = actions.close,
27 -
          },
28 -
        },
29 -
        previewer = false,
30 -
        hidden = true,
31 -
        prompt_prefix = "   ",
32 -
        file_ignore_patterns = { "node_modules", "package-lock.json" },
33 -
        initial_mode = "insert",
34 -
        select_strategy = "reset",
35 -
        sorting_strategy = "ascending",
36 -
        -- layout_strategy = "horizontal",
37 -
        layout_config = {
38 -
          --   width = 0.5,
39 -
          --   height = 0.4,
40 -
          prompt_position = "top",
41 -
          preview_cutoff = 120,
42 -
        },
43 -
      },
44 -
      pickers = {
45 -
        find_files = {
46 -
          -- theme = "dropdown",
47 -
          previewer = true,
48 -
          layout_config = {
49 -
            -- width = 0.5,
50 -
            height = 0.8,
51 -
            prompt_position = "top",
52 -
            preview_cutoff = 120,
53 -
          },
54 -
        },
55 -
        git_files = {
56 -
          previewer = true,
57 -
          layout_config = {
58 -
            height = 0.8,
59 -
            prompt_position = "top",
60 -
            preview_cutoff = 120,
61 -
          },
62 -
        },
63 -
        buffers = {
64 -
          mappings = {
65 -
            i = {
66 -
              ["<c-d>"] = actions.delete_buffer,
67 -
              ["<c-j>"] = actions.move_selection_next,
68 -
              ["<c-k>"] = actions.move_selection_previous,
69 -
            },
70 -
            n = {
71 -
              ["<c-d>"] = actions.delete_buffer,
72 -
              ["<c-j>"] = actions.move_selection_next,
73 -
              ["<c-k>"] = actions.move_selection_previous,
74 -
            },
75 -
          },
76 -
          previewer = false,
77 -
          initial_mode = "insert",
78 -
          theme = "dropdown",
79 -
          layout_config = {
80 -
            width = 0.5,
81 -
            height = 0.4,
82 -
            prompt_position = "top",
83 -
            preview_cutoff = 120,
84 -
          },
85 -
        },
86 -
        current_buffer_fuzzy_find = {
87 -
          previewer = true,
88 -
          -- theme = "dropdown",
89 -
          layout_config = {
90 -
            -- width = 0.5,
91 -
            height = 0.8,
92 -
            prompt_position = "top",
93 -
            preview_cutoff = 120,
94 -
          },
95 -
        },
96 -
        live_grep = {
97 -
          file_ignore_patterns = { "node_modules", "package-lock.json" },
98 -
          only_sort_text = true,
99 -
          previewer = true,
100 -
          layout_config = {
101 -
            horizontal = {
102 -
              width = 0.9,
103 -
              height = 0.75,
104 -
              preview_width = 0.6,
105 -
            },
106 -
          },
107 -
        },
108 -
        grep_string = {
109 -
          only_sort_text = true,
110 -
          previewer = true,
111 -
          layout_config = {
112 -
            horizontal = {
113 -
              width = 0.9,
114 -
              height = 0.75,
115 -
              preview_width = 0.6,
116 -
            },
117 -
          },
118 -
        },
119 -
        lsp_references = {
120 -
          show_line = false,
121 -
          previewer = true,
122 -
          layout_config = {
123 -
            horizontal = {
124 -
              width = 0.9,
125 -
              height = 0.75,
126 -
              preview_width = 0.6,
127 -
            },
128 -
          },
129 -
        },
130 -
        treesitter = {
131 -
          show_line = false,
132 -
          previewer = true,
133 -
          layout_config = {
134 -
            horizontal = {
135 -
              width = 0.9,
136 -
              height = 0.75,
137 -
              preview_width = 0.6,
138 -
            },
139 -
          },
140 -
        },
141 -
      },
142 -
      extensions = {
143 -
        fzf = {
144 -
          fuzzy = true,                   -- false will only do exact matching
145 -
          override_generic_sorter = true, -- override the generic sorter
146 -
          override_file_sorter = true,    -- override the file sorter
147 -
          case_mode = "smart_case",       -- or "ignore_case" or "respect_case"
148 -
        },
149 -
        ["ui-select"] = {
150 -
          require("telescope.themes").get_dropdown({
151 -
            previewer = false,
152 -
            initial_mode = "normal",
153 -
            sorting_strategy = "ascending",
154 -
            layout_strategy = "horizontal",
155 -
            layout_config = {
156 -
              horizontal = {
157 -
                width = 0.5,
158 -
                height = 0.4,
159 -
                preview_width = 0.6,
160 -
              },
161 -
            },
162 -
          }),
163 -
        },
164 -
        frecency = {
165 -
          default_workspace = "CWD",
166 -
          show_scores = true,
167 -
          show_unindexed = true,
168 -
          disable_devicons = false,
169 -
          ignore_patterns = {
170 -
            "*.git/*",
171 -
            "*/tmp/*",
172 -
            "*/lua-language-server/*",
173 -
          },
174 -
        },
175 -
        -- file_browser = {
176 -
        --   -- theme = "",
177 -
        --   previewer = true,
178 -
        --   -- disables netrw and use telescope-file-browser in its place
179 -
        --   hijack_netrw = true,
180 -
        --   -- mappings = {
181 -
        --   --   ["i"] = {
182 -
        --   --     -- your custom insert mode mappings
183 -
        --   --   },
184 -
        --   --   ["n"] = {
185 -
        --   --     -- your custom normal mode mappings
186 -
        --   --   },
187 -
        --   -- },
188 -
        -- },
189 -
      },
190 -
    })
191 -
    -- telescope.load_extension("file_browser")
192 -
  end,
193 -
}