diff --git a/lua/install-plugins.lua b/lua/install-plugins.lua index f406235..66daf9c 100644 --- a/lua/install-plugins.lua +++ b/lua/install-plugins.lua @@ -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 diff --git a/lua/plugins/lsp/on_attach.lua b/lua/plugins/lsp/on_attach.lua index e557418..d7e1edc 100644 --- a/lua/plugins/lsp/on_attach.lua +++ b/lua/plugins/lsp/on_attach.lua @@ -19,7 +19,7 @@ local on_attach = function(_, bufnr) end, bufopts) vim.keymap.set('n', 'rn', vim.lsp.buf.rename, bufopts) vim.keymap.set('n', 'a', vim.lsp.buf.code_action, bufopts) - vim.keymap.set('v', 'a', vim.lsp.buf.range_code_action, bufopts) + vim.keymap.set('v', 'a', vim.lsp.buf.code_action, bufopts) vim.keymap.set('n', 'ga', vim.lsp.buf.code_action, bufopts) vim.keymap.set('n', 'f', function() vim.lsp.buf.format { async = true } end, bufopts) -- vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts) diff --git a/lua/plugins/neozoom.lua b/lua/plugins/neozoom.lua new file mode 100644 index 0000000..b8decf3 --- /dev/null +++ b/lua/plugins/neozoom.lua @@ -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', 'o', [[:NeoZoomToggle]], { silent = true }) +vim.keymap.set('v', 'o', [[:NeoZoomTogglegv]], { silent = true }) diff --git a/lua/plugins/null-ls-nvim.lua b/lua/plugins/null-ls-nvim.lua index fe91ad0..49d19fa 100644 --- a/lua/plugins/null-ls-nvim.lua +++ b/lua/plugins/null-ls-nvim.lua @@ -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