Switch to NeoZoom for zooming buffers

This commit is contained in:
Tyler Hallada 2023-12-01 15:26:00 -05:00
parent 4b1ee0e5eb
commit df428dcefd
4 changed files with 18 additions and 3 deletions

View File

@ -354,7 +354,12 @@ return require('packer').startup(function(use)
end,
requires = { "nvim-lua/plenary.nvim" },
}
use 'vim-scripts/ZoomWin'
use {
'nyngwang/NeoZoom.lua',
config = function()
require('plugins.neozoom')
end,
}
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins

View File

@ -19,7 +19,7 @@ local on_attach = function(_, bufnr)
end, bufopts)
vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, bufopts)
vim.keymap.set('n', '<leader>a', vim.lsp.buf.code_action, bufopts)
vim.keymap.set('v', '<leader>a', vim.lsp.buf.range_code_action, bufopts)
vim.keymap.set('v', '<leader>a', vim.lsp.buf.code_action, bufopts)
vim.keymap.set('n', 'ga', vim.lsp.buf.code_action, bufopts)
vim.keymap.set('n', '<leader>f', function() vim.lsp.buf.format { async = true } end, bufopts)
-- vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts)

10
lua/plugins/neozoom.lua Normal file
View File

@ -0,0 +1,10 @@
require('neo-zoom').setup({
exclude_filetype = { 'fzf', 'qf', 'dashboard', 'telescope' },
left_ratio = 0.05,
top_ratio = 0.03,
width_ratio = 0.9,
height_ratio = 0.9,
})
vim.keymap.set('n', '<C-w>o', [[<Cmd>:NeoZoomToggle<CR>]], { silent = true })
vim.keymap.set('v', '<C-w>o', [[<Cmd>:NeoZoomToggle<CR>gv]], { silent = true })

View File

@ -22,7 +22,7 @@ null_ls.setup({
null_ls.builtins.formatting.tidy,
null_ls.builtins.formatting.taplo,
-- Refactoring
null_ls.builtins.code_actions.refactoring,
-- null_ls.builtins.code_actions.refactoring,
-- Shells
null_ls.builtins.diagnostics.fish,
-- Git