nvim: add noice last and history key bindings

This commit is contained in:
Łukasz Pankowski 2024-04-17 22:45:36 +02:00
parent a987843e95
commit ccf3dcc500

View File

@ -6,7 +6,8 @@ return {
'rcarriga/nvim-notify',
},
config = function()
require('noice').setup({
local noice = require('noice')
noice.setup({
lsp = {
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
override = {
@ -24,5 +25,12 @@ return {
lsp_doc_border = false, -- add a border to hover docs and signature help
},
})
vim.keymap.set("n", "<leader>nl", function()
noice.cmd("last")
end)
vim.keymap.set("n", "<leader>nh", function()
noice.cmd("history")
end)
end
}