nvim: added docs window plugin

master
tiyn 2 months ago
parent f26bda0261
commit 60a947a8a2

@ -29,6 +29,7 @@
"nvim-autopairs": { "branch": "master", "commit": "c6139ca0d5ad7af129ea6c89cb4c56093f2c034a" },
"nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
"nvim-colorizer.lua": { "branch": "master", "commit": "0b3950aed7bc35b78200bc292156aa77d2a4d342" },
"nvim-docs-view": { "branch": "master", "commit": "78d88bca16f32a430572758677f9246f6d7f7b94" },
"nvim-hlslens": { "branch": "main", "commit": "e4c811a401b06f86a7bb042b1d64a5cba21729a9" },
"nvim-lspconfig": { "branch": "master", "commit": "e172dd599cff2ae5267871b5e33fb42934c4df43" },
"nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },

@ -68,6 +68,9 @@ m.nmap("<F2>", ':NvimTreeToggle toggle<CR>', 'File tree: toggle')
-- mbbill/undotree
m.nmap("<F1>", ':UndotreeToggle<CR>', 'Undo tree: toggle')
-- amrbashir/nvim-docs-view
m.nnoremap("go", ':DocsViewToggle<CR>', 'LSP: toggle documentation window')
-- numtostr/fterm.nvim
m.nnoremap("<leader>tt", require("FTerm").toggle, 'Terminal: open')
m.tnoremap("<leader>tt", require("FTerm").toggle, 'Terminal: open')

@ -19,8 +19,10 @@ return {
config = function()
require("action-hints").setup({
template = {
definition = { text = "D", color = "#add8e6" },
references = { text = "R%s", color = "#ff6666" },
-- definition = { text = "D", color = "#add8e6" },
-- references = { text = "R%s", color = "#ff6666" },
definition = { text = Definition_sign, color = "#add8e6" },
references = { text = Reference_sign, color = "#ff6666" },
},
})
end,

@ -0,0 +1,8 @@
return {
"amrbashir/nvim-docs-view",
lazy = true,
cmd = "DocsViewToggle",
opts = {
position = "bottom",
},
}

@ -2,6 +2,9 @@
Return_sign = ""
Space_sign = "·"
Reference_sign = "%s"
Definition_sign = ""
Error_sign = ""
Hack_sign = ""
Hint_sign = ""

Loading…
Cancel
Save