repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim/lua/bugabinga/incubator.lua
Raw-- this file lists plugins in their "incubation" phase.
-- that means i am testing those out of curiosity, but am not sure yet i wish
-- to use and depend on them.
local puk = require 'std.puk'
local auto = require 'std.auto'
local map = require 'std.map'
local icon = require 'std.icon'
local const = require 'std.const'
local dbg = require 'std.dbg'
local ignored = require 'std.ignored'
-------------------------------------------------------------------------------
--- does not yet restore well with session
--- cannot navigate with C-w inside the DocsView
--- it has a manual update mode, but which key to bind it to?
puk.defer 'docs-view' (function(docsview)
docsview.setup {
position = 'top',
width = 42,
}
map.normal {
description = 'Toggle stable documentation panel.',
keys = '<leader>tk',
command = '<cmd>DocsViewToggle<cr>',
}
end)
-------------------------------------------------------------------------------
puk.defer 'rulebook' (function(rulebook)
rulebook.setup()
map.normal {
description = 'ignore rule',
category = 'lint',
keys = '<leader>ri',
command = rulebook.ignoreRule,
}
map.normal {
description = 'lookup rule',
category = 'lint',
keys = '<leader>rl',
command = rulebook.lookupRule,
}
map.normal {
description = 'yank diagnostic code',
category = 'lint',
keys = '<leader>ry',
command = rulebook.yankDiagnosticCode,
}
map.normal {
description = 'supress formatter',
category = 'lint',
keys = '<leader>rf',
command = rulebook.suppressFormatter,
}
end)
-------------------------------------------------------------------------------
--- this plugin has some sick visual text formatting chops. check them out some time.
puk.defer 'symbol-usage' (function(symbolusage)
symbolusage.setup {
hi = { link = 'LineNr' },
vt_position = 'end_of_line',
request_pending_text = false,
disable = {
filetypes = ignored.filetypes,
},
log = { enabled = dbg.get() },
}
end)
-------------------------------------------------------------------------------
--- Pretty NICE!
--- fix highlights to match nugu.
puk.defer 'glance' (function(glance)
glance.setup()
map.normal {
description = 'peek definitions',
category = 'lsp',
keys = 'grpd',
command = '<cmd>Glance definitions<cr>',
}
map.normal {
description = 'Peek references',
category = 'lsp',
keys = 'grpr',
command = '<cmd>Glance references<cr>',
}
map.normal {
description = 'Peek type definitions',
category = 'lsp',
keys = 'grpt',
command = '<cmd>Glance type_definitions<cr>',
}
map.normal {
description = 'Peek implementations',
keys = 'grpi',
command = '<cmd>Glance implementations<cr>',
}
end)
-------------------------------------------------------------------------------
puk.defer 'tiny-inline-diagnostic' (function(tiny)
tiny.setup {
options = {
-- Show the source of the diagnostic.
show_source = true,
-- Use your defined signs in the diagnostic config table.
use_icons_from_diagnostic = true,
},
}
end)
-------------------------------------------------------------------------------
puk.defer 'nvim-autopairs' (function(autopairs)
autopairs.setup {
disable_filetype = ignored.filetypes,
disable_in_visualblock = true,
check_ts = true,
}
end)
-------------------------------------------------------------------------------
puk.defer 'arrow' (function(arrow)
arrow.setup {
show_icons = true,
leader_key = ';',
buffer_leader_key = 'm',
}
end)
-------------------------------------------------------------------------------