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:
@@ -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,
|
||||
|
8
.config/nvim/lua/plugins/nvim-docs-view.lua
Normal file
8
.config/nvim/lua/plugins/nvim-docs-view.lua
Normal file
@@ -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 = " "
|
||||
|
Reference in New Issue
Block a user