fix(keymaps): only add vim.show_pos on nightly. Fixes #10

This commit is contained in:
Folke Lemaitre committed 2023-01-04 21:55:23 +01:00
1 parent 47fa58c2ed
commit 3d998cbdb1
1 file changed
+2
+2
View File
@@ -89,4 +89,6 @@ end, { desc = "Lazygit (root dir)" })
vim.keymap.set("n", "<leader>qq", "<cmd>qa<cr>", { desc = "Quit all" })
-- highlights under cursor
if vim.fn.has("nvim-0.9.0") == 1 then
vim.keymap.set("n", "<leader>hl", vim.show_pos, { desc = "Highlight Groups at cursor" })
end