Switch to NeoZoom for zooming buffers
This commit is contained in:
parent
88814d2fe8
commit
6d4f4d4a31
@ -354,7 +354,12 @@ return require('packer').startup(function(use)
|
|||||||
end,
|
end,
|
||||||
requires = { "nvim-lua/plenary.nvim" },
|
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
|
-- Automatically set up your configuration after cloning packer.nvim
|
||||||
-- Put this at the end after all plugins
|
-- Put this at the end after all plugins
|
||||||
|
@ -19,7 +19,7 @@ local on_attach = function(_, bufnr)
|
|||||||
end, bufopts)
|
end, bufopts)
|
||||||
vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, 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('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', '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', '<leader>f', function() vim.lsp.buf.format { async = true } end, bufopts)
|
||||||
-- vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts)
|
-- vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts)
|
||||||
|
10
lua/plugins/neozoom.lua
Normal file
10
lua/plugins/neozoom.lua
Normal 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 })
|
@ -22,7 +22,7 @@ null_ls.setup({
|
|||||||
null_ls.builtins.formatting.tidy,
|
null_ls.builtins.formatting.tidy,
|
||||||
null_ls.builtins.formatting.taplo,
|
null_ls.builtins.formatting.taplo,
|
||||||
-- Refactoring
|
-- Refactoring
|
||||||
null_ls.builtins.code_actions.refactoring,
|
-- null_ls.builtins.code_actions.refactoring,
|
||||||
-- Shells
|
-- Shells
|
||||||
null_ls.builtins.diagnostics.fish,
|
null_ls.builtins.diagnostics.fish,
|
||||||
-- Git
|
-- Git
|
||||||
|
Loading…
Reference in New Issue
Block a user