Files
keycodex/plugin/editor.lua
T
sankalp 81adaec661 feat(plugin): enable snack project explorer and trim plugin list
Streamline plugin configuration by enabling the project explorer in Snacks and removing unused plugins and configurations.

- New Features
  - Enabled `explorer` and `projects` in Snacks with explicit directories (`~/Projects`, `~/Projects/other`, `~/.config/Modus`).
  - Added `dev` layout mapping for project-specific browsing.
- Enhancements  - Removed unused UI plugins (`neoscroll.nvim`, `neodim`, `better-escape.nvim`) and their autocmds.
  - Optimized lazy loading of Snacks components for faster startup.
- Bug Fixes
  - Fixed misconfiguration of project directories (`~/Project` corrected to `~/Projects`).
  - Cleaned up removed plugin setups that could cause runtime errors.
2026-05-08 18:15:23 +05:45

67 lines
2.3 KiB
Lua

add({
'windwp/nvim-ts-autotag', -- autotag
'folke/todo-comments.nvim', -- todo comment highlights
'wakatime/vim-wakatime', --wakaTime coding time tracker
'lambdalisue/suda.vim', -- edit files as sudo (:SudaWrite)
'NMAC427/guess-indent.nvim', -- auto-detect tab/space indentation
'brenoprata10/nvim-highlight-colors', -- color highlighting
'davidmh/mdx.nvim', -- syntax highlighter for mdx
'nvim-treesitter/nvim-treesitter', -- nvim-treesitter
'Exafunction/windsurf.vim', -- windsurf ai for autocompletion
'numToStr/Navigator.nvim', -- navigator
'm4xshen/hardtime.nvim', -- workflow
'mg979/vim-visual-multi', -- multiple cursors
})
vim.g.VM_maps = {
['Find Under'] = '<M-d>', -- Alt + d | Select word under cursor and start multi-cursor
['Find Subword Under'] = '<M-d>', -- Alt + d | Select subword under cursor
['Select All'] = '<C-M-d>', -- Ctrl + Alt + d | Select all occurrences in the buffer
['Add Cursor Down'] = '<C-M-j>', -- Ctrl + Alt + j | Add a cursor on the line below
['Add Cursor Up'] = '<C-M-k>', -- Ctrl + Alt + k | Add a cursor on the line above
}
-- lazy load insert mode enhancements
vim.api.nvim_create_autocmd('InsertEnter', {
callback = function()
require('nvim-ts-autotag').setup({})
end,
once = true,
})
-- lazy load general editor enhancements
vim.api.nvim_create_autocmd({ 'BufReadPost', 'BufNewFile' }, {
callback = function()
require('todo-comments').setup({ signs = false })
require('guess-indent').setup({})
require('nvim-highlight-colors').setup({ render = 'background' })
require('Navigator').setup({
auto_save = 'current',
disable_on_zoom = false,
mux = 'auto',
})
end,
})
require('hardtime').setup({})
require('nvim-treesitter').setup({
ensure_installed = require('extensions').ts_parsers,
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = true,
},
indent = {
enable = true,
},
})
-- windsurf
vim.keymap.set('i', '<A-f>', function()
return vim.fn['codeium#Accept']()
end, { expr = true, silent = true })
vim.keymap.set('i', '<A-x>', function()
return vim.fn['codeium#Clear']()
end, { expr = true, silent = true })