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

This commit is contained in:
Folke Lemaitre 2023-01-04 21:55:16 +01:00
parent 47fa58c2ed
commit 3d998cbdb1
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

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
vim.keymap.set("n", "<leader>hl", vim.show_pos, { desc = "Highlight Groups at 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