mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 01:26:46 +00:00
41 lines
1.4 KiB
Lua
41 lines
1.4 KiB
Lua
return {
|
|
'echasnovski/mini.nvim',
|
|
config = function()
|
|
require('mini.ai').setup { n_lines = 500 }
|
|
require('mini.surround').setup {
|
|
mappings = {
|
|
add = 'gsa',
|
|
delete = 'gsd',
|
|
find = 'gsf',
|
|
find_left = 'gsF',
|
|
highlight = 'gsh',
|
|
replace = 'gsr',
|
|
},
|
|
}
|
|
require('mini.pairs').setup()
|
|
require('mini.icons').setup()
|
|
require('mini.statusline').setup({
|
|
content = {
|
|
active = function()
|
|
local mode, mode_hl = MiniStatusline.section_mode({ trunc_width = 120 })
|
|
local git = MiniStatusline.section_git({ trunc_width = 40 })
|
|
local diagnostics = MiniStatusline.section_diagnostics({ trunc_width = 75 })
|
|
local lsp = MiniStatusline.section_lsp({ trunc_width = 75 })
|
|
local filename = MiniStatusline.section_filename({trunc_width=1000})
|
|
local fileinfo = MiniStatusline.section_fileinfo({ trunc_width = 120 })
|
|
|
|
return MiniStatusline.combine_groups({
|
|
{ hl = mode_hl, strings = { mode } },
|
|
{ hl = 'MiniStatuslineDevinfo', strings = { git, diagnostics, lsp } },
|
|
'%<', -- Mark truncation point
|
|
{ hl = 'MiniStatuslineFilename', strings = { filename} },
|
|
'%=', -- Fill rest of screen
|
|
{ hl = 'MiniStatuslineFileinfo', strings = { fileinfo } },
|
|
{ hl = mode_hl, strings = { location } },
|
|
})
|
|
end,
|
|
},
|
|
})
|
|
end,
|
|
}
|