From 6ecfa47e4c64a08a5e2e0b9d6e9b5fdae438e8cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?SALVI=20J=C3=A9r=C3=A9mie?= Date: Thu, 18 Jul 2024 23:43:53 +0200 Subject: [PATCH] ipdate treesitter configuration --- lua/config/which-key.lua | 35 ++++++++++------------------------- 1 file changed, 10 insertions(+), 25 deletions(-) diff --git a/lua/config/which-key.lua b/lua/config/which-key.lua index 76a0891..a82fa85 100644 --- a/lua/config/which-key.lua +++ b/lua/config/which-key.lua @@ -1,37 +1,22 @@ --- Ensure plugin is avaiable local ok, wichkey = pcall(require, "which-key") if not ok then - return + return end --- Global options vim.o.timeout = true vim.o.timeoutlen = 300 ---- Add description to leader group -wichkey.register({ - n = { - name = "NoHighLight", - }, - e = { - name = "NvimTree", - }, - f = { - name = "Telescope", - }, - l = { - name = "Lsp", - }, - s = { - name = "Treesitter", - }, - b = { - name = "Bufferline", - }, - t = { - name = "Table", - }, -}, { prefix = "" }) +wichkey.add({ + { "n", group = "NoHighLight" }, -- group + { "e", group = "NvimTree" }, -- group + { "f", group = "Telescope" }, -- group + { "l", group = "Lsp" }, -- group + { "s", group = "Treesitter" }, -- group + { "b", group = "Bufferline" }, -- group + { "t", group = "Table" }, -- group +}) --- Override keymap local km = vim.keymap.set