Add mapping for diagnostic popup

This commit is contained in:
Sheldon Lee 2024-09-28 01:06:52 +08:00
parent a66d3f9c73
commit 3cc8447717

View File

@ -56,6 +56,8 @@ vim.keymap.set("n", "<leader>r", function() vim.cmd('lua require("harpoon.ui").n
vim.keymap.set("n", "<leader>s", function() vim.cmd('lua require("harpoon.ui").nav_file(3)') end)
vim.keymap.set("n", "<leader>t", function() vim.cmd('lua require("harpoon.ui").nav_file(4)') end)
-- Ltex
local function ltex_append_dictionary(word)
if not word or word == "\n" or word == "" then
print("Word empty:", word)
@ -102,3 +104,6 @@ end
vim.keymap.set("v", "<leader>zz", ltex_selection_add_word)
vim.keymap.set("n", "<leader>zz", ltex_add_word)
vim.keymap.set("n", "<leader>zd", function() vim.cmd.edit(LTEX_DICT) end)
-- Lsp stuff
vim.keymap.set("n", "<leader>e", vim.diagnostic.open_float)