commit 32e4834a69934678f5a8802279a8154bbcc590ab
parent a07fd70754150930dec098f98161fd97f0533799
Author: Tomas Nemec <nemi@skaut.cz>
Date: Mon, 2 Jan 2023 07:00:24 +0100
update
Diffstat:
3 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/after/plugin/animate.lua b/after/plugin/animate.lua
@@ -1,11 +1,10 @@
-if not vim.g['animate#loaded'] then
- return
+if vim.g['animate#loaded'] then
+ vim.keymap.set('n', '<c-up>', ':call animate#window_delta_height(10)<cr>', { silent = true })
+ vim.keymap.set('n', '<c-down>', ':call animate#window_delta_height(-10)<cr>', { silent = true })
+ vim.keymap.set('n', '<c-left>', ':call animate#window_delta_width(-10)<cr>', { silent = true })
+ vim.keymap.set('n', '<c-right>', ':call animate#window_delta_width(10)<cr>', { silent = true })
+ vim.keymap.set('n', '<s-up>', ':call animate#window_delta_height(1)<cr>', { silent = true })
+ vim.keymap.set('n', '<s-down>', ':call animate#window_delta_height(-1)<cr>', { silent = true })
+ vim.keymap.set('n', '<s-left>', ':call animate#window_delta_width(-1)<cr>', { silent = true })
+ vim.keymap.set('n', '<s-right>', ':call animate#window_delta_width(1)<cr>', { silent = true })
end
-vim.keymap.set('n', '<c-up>', ':call animate#window_delta_height(10)<cr>', { silent = true })
-vim.keymap.set('n', '<c-down>', ':call animate#window_delta_height(-10)<cr>', { silent = true })
-vim.keymap.set('n', '<c-left>', ':call animate#window_delta_width(-10)<cr>', { silent = true })
-vim.keymap.set('n', '<c-right>', ':call animate#window_delta_width(10)<cr>', { silent = true })
-vim.keymap.set('n', '<s-up>', ':call animate#window_delta_height(1)<cr>', { silent = true })
-vim.keymap.set('n', '<s-down>', ':call animate#window_delta_height(-1)<cr>', { silent = true })
-vim.keymap.set('n', '<s-left>', ':call animate#window_delta_width(-1)<cr>', { silent = true })
-vim.keymap.set('n', '<s-right>', ':call animate#window_delta_width(1)<cr>', { silent = true })
diff --git a/after/plugin/neoscroll.lua b/after/plugin/neoscroll.lua
@@ -1,13 +1,14 @@
-if not pcall(require,'neoscroll')then return end
+if not pcall(require, 'neoscroll') then
+ return
+end
-require('neoscroll').setup({ mappings = { '<C-u>', '<C-d>', '<C-b>', '<C-f>', 'zt', 'zz', 'zb' } })
-local t = {}
--- Syntax: t[keys] = {function , {function arguments}}
-t['<C-u>'] = { 'scroll', { '-vim.wo.scroll', 'true', '80' } }
-t['<C-d>'] = { 'scroll', { 'vim.wo.scroll', 'true', '80' } }
-t['<C-b>'] = { 'scroll', { '-vim.api.nvim_win_get_height(0)', 'true', '100' } }
-t['<C-f>'] = { 'scroll', { 'vim.api.nvim_win_get_height(0)', 'true', '100' } }
-t['zt'] = { 'zt', { '100' } }
-t['zz'] = { 'zz', { '100' } }
-t['zb'] = { 'zb', { '100' } }
-require('neoscroll.config').set_mappings(t)
+require('neoscroll').setup {}
+require('neoscroll.config').set_mappings {
+ ['<C-u>'] = { 'scroll', { '-vim.wo.scroll', 'true', '80' } },
+ ['<C-d>'] = { 'scroll', { 'vim.wo.scroll', 'true', '80' } },
+ ['<C-b>'] = { 'scroll', { '-vim.api.nvim_win_get_height(0)', 'true', '100' } },
+ ['<C-f>'] = { 'scroll', { 'vim.api.nvim_win_get_height(0)', 'true', '100' } },
+ ['zt'] = { 'zt', { '100' } },
+ ['zz'] = { 'zz', { '100' } },
+ ['zb'] = { 'zb', { '100' } },
+}
diff --git a/lua/plugins.lua b/lua/plugins.lua
@@ -36,7 +36,7 @@ return packer.startup({
-- use 'windwp/nvim-autopairs'
use 'numToStr/Comment.nvim'
use 'mbbill/undotree'
- use 'camspiers/animate.vim'
+ -- use 'camspiers/Animate.vim'
use 'nvchad/nvim-colorizer.lua'
use 'uga-rosa/ccc.nvim'
use 'rainbowhxch/beacon.nvim'