neovim

Personal neovim configuration files
git clone git://gtms.dev:neovim
Log | Files | Refs

commit 238dd0d62e90acccc2d4ec720e36cee431064603
parent f0e1d4fada70fc1174f4199d8aee40a5d4a5318e
Author: Tomas Nemec <nemi@skaut.cz>
Date:   Thu, 24 Mar 2022 07:05:13 +0100

feat: leap over lightspeed

Diffstat:
Mlua/my-default.lua | 23+++++------------------
Mlua/tms/lsp/init.lua | 4+---
Mlua/tms/plugins.lua | 9++++++++-
3 files changed, 14 insertions(+), 22 deletions(-)

diff --git a/lua/my-default.lua b/lua/my-default.lua @@ -150,21 +150,8 @@ Group.new('WinSeparator', nil, colors.none) Group.new('TelescopeSelection', nil, dimm(N.bg, 0.05)) Group.new('TelescopeMatching', nil, nil, styles.underline + styles.bold) --- Marks -Group.link('MarkSignHL', groups.Comment) - --- Lightspeed -local ls1 = colors.c2 -local ls2 = colors.c3 -Group.link('LightspeedGreyWash', groups.Comment) -Group.new('LightspeedCursor', N, N, styles.reverse) -Group.new('LightspeedUnlabeledMatch', N, N, styles.reverse) -- linked: hLightspeedUniqueChar -Group.new('LightspeedPendingOpArea', N, N, styles.reverse) -Group.new('LightspeedLabel', ls1, colors.none, styles.none) -Group.new('LightspeedLabelOverlapped', dimm(ls1, 0.1), colors.none, styles.none) -Group.new('LightspeedLabelDistant', ls2, colors.none, styles.none) -Group.new('LightspeedLabeDistantlOverlapped', dimm(ls2, 0.1), colors.none, styles.none) -Group.new('LightspeedShortcut', ls1, nil, styles.reverse) -Group.new('LightspeedShortcutOverlapped', dimm(ls1, 0.1), nil, styles.none) -Group.new('LightspeedMaskedChar', N, nil, styles.none) -Group.new('LightspeedOneCharMatch', nil, nil, styles.underline + styles.bold) +-- leap +Group.link('LeapBackdrop', groups.Comment) +-- Group.new('LeapMatch', colors.c5, nil, styles.underline) +Group.new('LeapLabelPrimary', N, N, styles.reverse) +Group.link('LeapLabelSecondary', groups.Comment) diff --git a/lua/tms/lsp/init.lua b/lua/tms/lsp/init.lua @@ -21,9 +21,7 @@ local keybind = function(client, bufnr) -- symbols local t = require('tms.p.telescope') vim.keymap.set('n', 'gm', t.lsp_document_symbols, {silent = true, buffer = bufnr}) - vim.keymap.set('n', 'gww', t.b.lsp_dynamic_workspace_symbols, {silent = true, buffer = bufnr}) - vim.keymap.set('n', 'gwW', vim.lsp.buf.workspace_symbol, {silent = true, buffer = bufnr}) - vim.keymap.set('n', 'gwl', function() D(vim.lsp.buf.list_workspace_folders()) end, {silent = true, buffer = bufnr}) + vim.keymap.set('n', 'gM', t.b.lsp_dynamic_workspace_symbols, {silent = true, buffer = bufnr}) end local attach_callbacks = {} diff --git a/lua/tms/plugins.lua b/lua/tms/plugins.lua @@ -20,7 +20,14 @@ return packer.startup({ use 'xxdavid/bez-diakritiky.vim' -- movements - use {'ggandor/lightspeed.nvim'} + use { + 'ggandor/leap.nvim', + config = function() + require('leap').set_default_keymaps() + + vim.keymap.set('n', 'gw', '<Plug>(leap-cross-window)') + end, + } -- editor use 'tpope/vim-repeat'