refactor: modularize nvim config into lua/config + lua/plugins
- Extract all options, keymaps, and autocommands into lua/config/ - Move every plugin spec into its own file under lua/plugins/ - Add custom inline orng colorscheme (dark + light) synced to macOS appearance - Consolidate image.nvim into pdf-viewer.lua (fix duplicate spec) - Fix image.nvim processor: magick -> magick_cli - Remove conflicting nvim-autopairs (kept mini.pairs) - Fix broken <C-f> keymap (was calling non-existent builtin cmd) - Delete lua/kickstart/ and lua/custom/ folders - Add colors/orng.vim + colors/orng-light.vim stubs for mid-session switching - init.lua reduced from 1078 lines to 49 lines
This commit is contained in:
7
lua/plugins/extras/comment.lua
Normal file
7
lua/plugins/extras/comment.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
-- lua/plugins/extras/comment.lua
|
||||
-- Smart commenting via gcc / gc<motion>
|
||||
|
||||
return {
|
||||
'numToStr/Comment.nvim',
|
||||
opts = {},
|
||||
}
|
||||
17
lua/plugins/extras/fff.lua
Normal file
17
lua/plugins/extras/fff.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
-- lua/plugins/extras/fff.lua
|
||||
-- Fast fuzzy file finder with a native Rust binary
|
||||
-- https://github.com/dmtrKovalenko/fff.nvim
|
||||
|
||||
return {
|
||||
'dmtrKovalenko/fff.nvim',
|
||||
lazy = false,
|
||||
build = function()
|
||||
require('fff.download').download_or_build_binary()
|
||||
end,
|
||||
opts = {
|
||||
debug = { enabled = false, show_scores = false },
|
||||
},
|
||||
keys = {
|
||||
{ 'ff', function() require('fff').find_files() end, desc = 'FFFind files' },
|
||||
},
|
||||
}
|
||||
20
lua/plugins/extras/lazygit.lua
Normal file
20
lua/plugins/extras/lazygit.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
-- lua/plugins/extras/lazygit.lua
|
||||
-- LazyGit floating window integration
|
||||
-- https://github.com/kdheepak/lazygit.nvim
|
||||
|
||||
return {
|
||||
'kdheepak/lazygit.nvim',
|
||||
lazy = true,
|
||||
cmd = {
|
||||
'LazyGit',
|
||||
'LazyGitConfig',
|
||||
'LazyGitCurrentFile',
|
||||
'LazyGitFilter',
|
||||
'LazyGitFilterCurrentFile',
|
||||
},
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
keys = {
|
||||
{ '<leader>lg', '<cmd>LazyGit<cr>', desc = 'LazyGit' },
|
||||
-- <C-g> is also mapped in config/keymaps.lua
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user