diff --git a/lua/lazyvim/config/keymaps.lua b/lua/lazyvim/config/keymaps.lua index 28569b91..02f3ccfb 100644 --- a/lua/lazyvim/config/keymaps.lua +++ b/lua/lazyvim/config/keymaps.lua @@ -89,4 +89,6 @@ end, { desc = "Lazygit (root dir)" }) vim.keymap.set("n", "qq", "qa", { desc = "Quit all" }) -- highlights under cursor -vim.keymap.set("n", "hl", vim.show_pos, { desc = "Highlight Groups at cursor" }) +if vim.fn.has("nvim-0.9.0") == 1 then + vim.keymap.set("n", "hl", vim.show_pos, { desc = "Highlight Groups at cursor" }) +end