1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-10 19:41:15 +02:00

nvim: added docs window plugin

This commit is contained in:
2024-03-08 04:03:56 +01:00
parent f26bda0261
commit 60a947a8a2
5 changed files with 19 additions and 2 deletions

View File

@@ -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')

View File

@@ -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,

View File

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

View File

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