commit 2844553aa24f9ca20478bea9e99e2737e297a4e6
parent f0618da2c4a527f555ca46ec9a23288fd67515c2
Author: Tomas Nemec <nemi@skaut.cz>
Date: Wed, 9 Nov 2022 00:38:20 +0100
update
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/after/plugin/leap.lua b/after/plugin/leap.lua
@@ -3,7 +3,7 @@ if not pcall(require, 'leap') then
end
local leap = require('leap')
-leap.setup({ case_sensitive = false, highlight_unlabeled = true, max_aot_targets = nil })
+leap.setup({ highlight_unlabeled_phase_one_targets = true })
local default_highlights = function()
require('tms.colors').update(function(t)
@@ -24,7 +24,7 @@ local ast_highlights = function()
end
default_highlights()
-leap.set_default_keymaps()
+leap.add_default_mappings()
if pcall(require, 'tms.p.leap.ast') then
vim.keymap.set({ 'n', 'x', 'o' }, 'gp', function()
diff --git a/after/plugin/treesitter.lua b/after/plugin/treesitter.lua
@@ -103,4 +103,6 @@ require('tms.colors').update(function(t)
t.Group.new('TSDefinition', t.colors.none, t.colors.none)
t.Group.new('TSCurentScope', t.colors.none, t.colors.none)
t.Group.new('TSDefinitionUsage', t.colors.none, t.dimm(t.groups.Normal.bg, 0.03))
+ -- context
+ t.Group.new('TreesitterContext', t.colors.none, t.dimm(t.groups.Normal.bg, 0.06))
end)