-- 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 = 'tk', command = 'DocsViewToggle', } end) ------------------------------------------------------------------------------- puk.defer 'rulebook' (function(rulebook) rulebook.setup() map.normal { description = 'ignore rule', category = 'lint', keys = 'ri', command = rulebook.ignoreRule, } map.normal { description = 'lookup rule', category = 'lint', keys = 'rl', command = rulebook.lookupRule, } map.normal { description = 'yank diagnostic code', category = 'lint', keys = 'ry', command = rulebook.yankDiagnosticCode, } map.normal { description = 'supress formatter', category = 'lint', keys = '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 = 'Glance definitions', } map.normal { description = 'Peek references', category = 'lsp', keys = 'grpr', command = 'Glance references', } map.normal { description = 'Peek type definitions', category = 'lsp', keys = 'grpt', command = 'Glance type_definitions', } map.normal { description = 'Peek implementations', keys = 'grpi', command = 'Glance implementations', } 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) ------------------------------------------------------------------------------- puk.defer 'hlchunk' (function(hlchunk) hlchunk.setup { chunk = { enable = true }, } end) ------------------------------------------------------------------------------- puk.defer 'image' (function(image) image.setup { backend = 'kitty', processor = 'magick_cli', window_overlap_clear_ft_ignore = ignored.filetypes, integrations = { markdown = { clear_in_insert_mode = true, only_render_image_at_cursor = true, }, }, editor_only_render_when_focused = true, } end) ------------------------------------------------------------------------------- puk.defer 'diagram' (function(diagram) diagram.setup {} end) -------------------------------------------------------------------------------