chore: remove unused plugins
Remove plugins no longer in use: - atac, autopairs, diffview, images, marks, neogen - notify, wezterm, zen-mode
This commit is contained in:
parent
375584629e
commit
5851bbee73
9 changed files with 0 additions and 289 deletions
|
|
@ -1,18 +0,0 @@
|
|||
return {
|
||||
'NachoNievaG/atac.nvim',
|
||||
cmd = 'Atac',
|
||||
dependencies = { 'akinsho/toggleterm.nvim' },
|
||||
config = function()
|
||||
require('toggleterm').setup({
|
||||
open_mapping = [[<c-\>]],
|
||||
hide_numbers = true,
|
||||
shade_terminals = true,
|
||||
start_in_insert = true,
|
||||
persist_size = true,
|
||||
close_on_exit = true,
|
||||
})
|
||||
require('atac').setup({
|
||||
dir = '~/Documents/projects/',
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
return {
|
||||
'windwp/nvim-autopairs',
|
||||
dependencies = { 'hrsh7th/nvim-cmp' },
|
||||
event = 'InsertEnter',
|
||||
config = function()
|
||||
require('nvim-autopairs').setup({})
|
||||
-- If you want to automatically add `(` after selecting a function or method
|
||||
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
||||
local cmp = require('cmp')
|
||||
cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done())
|
||||
end,
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
return {
|
||||
'sindrets/diffview.nvim',
|
||||
cmd = { 'DiffviewOpen', 'DiffviewClose', 'DiffviewToggleFiles', 'DiffviewFocusFiles' },
|
||||
keys = {
|
||||
{ '<leader>gd', '<cmd>DiffviewOpen<CR>', desc = 'Git: Diffview open' },
|
||||
{ '<leader>gD', '<cmd>DiffviewClose<CR>', desc = 'Git: Diffview close' },
|
||||
},
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
opts = {},
|
||||
}
|
||||
|
|
@ -1,103 +0,0 @@
|
|||
return {
|
||||
-- {
|
||||
-- 'vhyrro/luarocks.nvim',
|
||||
-- priority = 1001,
|
||||
-- opts = {
|
||||
-- rocks = { 'magick' },
|
||||
-- },
|
||||
-- event = 'VeryLazy', -- Adjust this based on your needs
|
||||
-- },
|
||||
-- {
|
||||
-- 'willothy/wezterm.nvim',
|
||||
-- config = true,
|
||||
-- event = 'BufWinEnter', -- Or another appropriate event
|
||||
-- },
|
||||
-- {
|
||||
-- '3rd/image.nvim',
|
||||
-- enabled = true,
|
||||
-- commit = 'deb158d',
|
||||
-- dev = false,
|
||||
-- ft = { 'markdown', 'quarto', 'vimwiki' },
|
||||
-- config = function()
|
||||
-- local image = require 'image'
|
||||
-- image.setup {
|
||||
-- backend = 'wezterm',
|
||||
-- integrations = {
|
||||
-- markdown = {
|
||||
-- enabled = true,
|
||||
-- only_render_image_at_cursor = true,
|
||||
-- filetypes = { 'markdown', 'vimwiki', 'quarto' },
|
||||
-- },
|
||||
-- },
|
||||
-- editor_only_render_when_focused = false,
|
||||
-- window_overlap_clear_enabled = true,
|
||||
-- tmux_show_only_in_active_window = true,
|
||||
-- window_overlap_clear_ft_ignore = { 'cmp_menu', 'cmp_docs', 'scrollview', 'scrollview_sign' },
|
||||
-- max_width = nil,
|
||||
-- max_height = nil,
|
||||
-- max_width_window_percentage = nil,
|
||||
-- max_height_window_percentage = 30,
|
||||
-- kitty_method = 'normal',
|
||||
-- }
|
||||
--
|
||||
-- local function clear_all_images()
|
||||
-- local bufnr = vim.api.nvim_get_current_buf()
|
||||
-- local images = image.get_images { buffer = bufnr }
|
||||
-- for _, img in ipairs(images) do
|
||||
-- img:clear()
|
||||
-- end
|
||||
-- end
|
||||
--
|
||||
-- local function get_image_at_cursor(buf)
|
||||
-- local images = image.get_images { buffer = buf }
|
||||
-- local row = vim.api.nvim_win_get_cursor(0)[1] - 1
|
||||
-- for _, img in ipairs(images) do
|
||||
-- if img.geometry ~= nil and img.geometry.y == row then
|
||||
-- local og_max_height = img.global_state.options.max_height_window_percentage
|
||||
-- img.global_state.options.max_height_window_percentage = nil
|
||||
-- return img, og_max_height
|
||||
-- end
|
||||
-- end
|
||||
-- return nil
|
||||
-- end
|
||||
--
|
||||
-- local create_preview_window = function(img, og_max_height)
|
||||
-- local buf = vim.api.nvim_create_buf(false, true)
|
||||
-- local win_width = vim.api.nvim_get_option_value('columns', {})
|
||||
-- local win_height = vim.api.nvim_get_option_value('lines', {})
|
||||
-- local win = vim.api.nvim_open_win(buf, true, {
|
||||
-- relative = 'editor',
|
||||
-- style = 'minimal',
|
||||
-- width = win_width,
|
||||
-- height = win_height,
|
||||
-- row = 0,
|
||||
-- col = 0,
|
||||
-- zindex = 1000,
|
||||
-- })
|
||||
-- vim.keymap.set('n', 'q', function()
|
||||
-- vim.api.nvim_win_close(win, true)
|
||||
-- img.global_state.options.max_height_window_percentage = og_max_height
|
||||
-- end, { buffer = buf })
|
||||
-- return { buf = buf, win = win }
|
||||
-- end
|
||||
--
|
||||
-- local handle_zoom = function(bufnr)
|
||||
-- local img, og_max_height = get_image_at_cursor(bufnr)
|
||||
-- if img == nil then
|
||||
-- return
|
||||
-- end
|
||||
--
|
||||
-- local preview = create_preview_window(img, og_max_height)
|
||||
-- image.hijack_buffer(img.path, preview.win, preview.buf)
|
||||
-- end
|
||||
--
|
||||
-- vim.keymap.set('n', '<leader>io', function()
|
||||
-- local bufnr = vim.api.nvim_get_current_buf()
|
||||
-- handle_zoom(bufnr)
|
||||
-- end, { buffer = true, desc = 'image [o]pen' })
|
||||
--
|
||||
-- vim.keymap.set('n', '<leader>ic', clear_all_images, { desc = 'image [c]lear' })
|
||||
-- end,
|
||||
-- },
|
||||
--
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
return {
|
||||
'chentoast/marks.nvim',
|
||||
keys = {
|
||||
{ 'm', mode = 'n' },
|
||||
{ "'", mode = 'n' },
|
||||
{ '`', mode = 'n' },
|
||||
},
|
||||
opts = {
|
||||
default_mappings = true,
|
||||
default_view = 'vertical',
|
||||
},
|
||||
}
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
return {
|
||||
'danymat/neogen',
|
||||
dependencies = {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
'L3MON4D3/LuaSnip',
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
'<leader>nf',
|
||||
function()
|
||||
require('neogen').generate({ type = 'func' })
|
||||
end,
|
||||
desc = 'Generate function documentation',
|
||||
},
|
||||
{
|
||||
'<leader>nt',
|
||||
function()
|
||||
require('neogen').generate({ type = 'type' })
|
||||
end,
|
||||
desc = 'Generate type documentation',
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require('neogen').setup({
|
||||
enabled = true,
|
||||
snippet_engine = 'luasnip', -- Using LuaSnip as the snippet engine
|
||||
})
|
||||
end,
|
||||
cond = function()
|
||||
-- Only load if Treesitter is installed and available
|
||||
return vim.fn.exists(':TSInstall') == 2
|
||||
end,
|
||||
-- Uncomment next line if you want to follow only stable versions
|
||||
-- version = "*"
|
||||
}
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
return {
|
||||
'rcarriga/nvim-notify',
|
||||
event = 'VeryLazy',
|
||||
opts = {
|
||||
timeout = 5000,
|
||||
stages = 'static',
|
||||
},
|
||||
config = function(_, opts)
|
||||
local notify = require('notify')
|
||||
notify.setup(opts)
|
||||
|
||||
-- Override vim.notify to filter out noisy LSP messages
|
||||
local original_notify = vim.notify
|
||||
vim.notify = function(msg, level, notify_opts)
|
||||
-- Suppress Node.js warnings
|
||||
if type(msg) == 'string' and msg:match('ExperimentalWarning: SQLite') then
|
||||
return
|
||||
end
|
||||
if type(msg) == 'string' and msg:match('DeprecationWarning.*punycode') then
|
||||
return
|
||||
end
|
||||
|
||||
-- Suppress copilot errors (harmless race conditions)
|
||||
if type(msg) == 'string' and msg:match('Cannot find request.*whilst attempting to cancel') then
|
||||
return
|
||||
end
|
||||
if type(msg) == 'string' and msg:match('AbortError: The operation was aborted') then
|
||||
return
|
||||
end
|
||||
if type(msg) == 'string' and msg:match('rate limit exceeded') then
|
||||
return
|
||||
end
|
||||
if type(msg) == 'string' and msg:match('Rate limited by server') then
|
||||
return
|
||||
end
|
||||
|
||||
-- Suppress bashls parsing/formatting errors
|
||||
if type(msg) == 'string' and msg:match('Error while parsing file://') then
|
||||
return
|
||||
end
|
||||
if type(msg) == 'string' and msg:match('Error while formatting.*Shfmt') then
|
||||
return
|
||||
end
|
||||
|
||||
original_notify(msg, level, notify_opts)
|
||||
end
|
||||
|
||||
-- Set as default notifier
|
||||
vim.notify = notify
|
||||
end,
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
return {
|
||||
'willothy/wezterm.nvim',
|
||||
opts = {
|
||||
create_commands = false,
|
||||
},
|
||||
}
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
return {
|
||||
'folke/zen-mode.nvim',
|
||||
command = 'ZenMode',
|
||||
opts = {
|
||||
window = {
|
||||
backdrop = 0.95, -- Transparency level for the zen mode window
|
||||
width = 0.80, -- 80% of the total editor width
|
||||
height = 1, -- Full height
|
||||
options = {
|
||||
signcolumn = 'no', -- Hide signcolumn in zen mode
|
||||
number = true, -- Disable line numbers
|
||||
relativenumber = true, -- Disable relative numbers
|
||||
},
|
||||
},
|
||||
plugins = {
|
||||
wezterm = {
|
||||
enabled = true,
|
||||
font = '+2', -- Increase font size in WezTerm by 2
|
||||
},
|
||||
},
|
||||
on_open = function()
|
||||
-- Configure Neovim options when Zen Mode opens
|
||||
vim.opt.ruler = false -- Hide ruler
|
||||
vim.opt.showcmd = false -- Hide command feedback
|
||||
vim.opt.laststatus = 0 -- Hide status line
|
||||
end,
|
||||
on_close = function()
|
||||
-- Restore Neovim options when Zen Mode closes
|
||||
vim.opt.ruler = true -- Show ruler
|
||||
vim.opt.showcmd = true -- Show command feedback
|
||||
vim.opt.laststatus = 2 -- Show status line
|
||||
end,
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
'<leader>zz',
|
||||
'<cmd>ZenMode<CR>',
|
||||
desc = 'Toggle Zen Mode',
|
||||
silent = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Reference in a new issue