adds useful mini.nvim plugins
8217481b3923ab78904575a7b630a50b6371fc74
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
- Parent 1: 375c32163039
bugabingas dorkfiles
8217481b3923ab78904575a7b630a50b6371fc74
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
+128 / −0 text lines
new file mode 100644+12 / −0 text lines
new file mode 100644+62 / −0 text lines
local table = require 'std.table'local auto = require 'std.auto'return { 'echasnovski/mini.cursorword', version = '0.*', event = 'VeryLazy', opts = { delay = 4242, }, config = function ( _, opts ) local cursorword_blocklist = function () local curword = vim.fn.expand '<cword>' local filetype = vim.bo.filetype -- Add any disabling global or filetype-specific logic here local blocklist = { '_', 'if', 'else', 'switch', 'case', 'return', 'true', 'false', } if filetype == 'lua' then table.join( blocklist, { 'local', 'require', 'prequire', 'then', 'end', 'elseif', } ) elseif filetype == 'java' then table.join( blocklist, { 'import', 'class', 'final', 'interface', 'record', 'abstract', 'static', 'public', 'private', } ) end vim.b.minicursorword_disable = vim.tbl_contains( blocklist, curword ) end -- Make sure to add this autocommand *before* calling module's `setup()`. auto 'mini_cursorword_blocklist_update' { description = 'Disable Cursorword for certein words.', events = 'CursorMoved', pattern = '*', command = cursorword_blocklist, } prequire 'mini.cursorword'.setup( opts ) vim.api.nvim_set_hl( 0, 'MiniCursorwordCurrent', { reverse = true } ) end,}new file mode 100644+6 / −0 text lines
new file mode 100644+6 / −0 text lines
new file mode 100644+14 / −0 text lines
local ignored = require 'std.ignored'return { 'echasnovski/mini.misc', version = '0.*', lazy = false, opts = { make_global = {} }, config = function ( _, opts ) local misc = require 'mini.misc' misc.setup( opts ) -- misc.setup_termbg_sync() misc.setup_restore_cursor { ignore_filetype = ignored.filetypes } end,}new file mode 100644+22 / −0 text lines
return { 'j-hui/fidget.nvim', version = 'v1.*', lazy = false, opts = { -- Options related to LSP progress subsystem progress = { suppress_on_insert = true, -- Suppress new messages while in insert mode }, -- Options related to notification subsystem notification = { override_vim_notify = true, -- Automatically override vim.notify() with Fidget -- Options related to the notification window and buffer window = { winblend = vim.o.winblend, -- Background color opacity in the notification window border = vim.g.border_style, -- Border around the notification window }, }, },}new file mode 100644+6 / −0 text lines