Nvim: small tweaks and organizing config
This commit is contained in:
parent
53a52fb737
commit
6fbba8bf3d
4 changed files with 18 additions and 12 deletions
|
@ -1,5 +0,0 @@
|
|||
-- vim api documentation for lua lsp
|
||||
return {
|
||||
"ii14/emmylua-nvim",
|
||||
ft = { "lua" },
|
||||
}
|
|
@ -5,8 +5,7 @@ return {
|
|||
local gitsigns = require("gitsigns")
|
||||
gitsigns.setup()
|
||||
|
||||
local wk = require("which-key")
|
||||
wk.register({
|
||||
require("which-key").register({
|
||||
["["] = { h = { gitsigns.prev_hunk, "Previous hunk" } },
|
||||
["]"] = { h = { gitsigns.next_hunk, "Next hunk" } },
|
||||
})
|
||||
|
|
|
@ -18,4 +18,17 @@ return {
|
|||
lsp_doc_border = true,
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local noice = require("noice")
|
||||
noice.setup(opts)
|
||||
|
||||
require("which-key").register({
|
||||
d = {
|
||||
function()
|
||||
vim.cmd("NoiceDismiss")
|
||||
end,
|
||||
"Dismiss notifications",
|
||||
},
|
||||
}, { prefix = "<leader>" })
|
||||
end,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue