mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
custom dart tabline
This commit is contained in:
parent
d7ae87e671
commit
9457c7436e
12 changed files with 424 additions and 51 deletions
|
|
@ -47,21 +47,6 @@ return {
|
|||
},
|
||||
config = function()
|
||||
require('mini.basics').setup { mappings = { windows = true } }
|
||||
require('mini.tabline').setup {
|
||||
tabpage_section = 'right',
|
||||
show_icons = false,
|
||||
format = function(buf_id, label) -- show global marks in tab
|
||||
local default = MiniTabline.default_format(buf_id, label)
|
||||
for _, mark in ipairs(vim.fn.getmarklist()) do
|
||||
if mark.pos[1] == buf_id then
|
||||
if mark.mark:match("^'[A-Z]$") then
|
||||
return ' [' .. mark.mark:sub(2) .. ']' .. default
|
||||
end
|
||||
end
|
||||
end
|
||||
return default
|
||||
end,
|
||||
}
|
||||
require('mini.statusline').setup {
|
||||
content = {
|
||||
active = function()
|
||||
|
|
@ -73,11 +58,11 @@ return {
|
|||
|
||||
return MiniStatusline.combine_groups {
|
||||
'%<', -- Mark general truncate point
|
||||
-- { hl = 'MiniStatuslineFilename', strings = { filename } },
|
||||
'%=', -- End left alignment
|
||||
-- { hl = 'MiniStatuslineDevinfo', strings = { filename } },
|
||||
{ hl = 'MiniStatuslineDevinfo', strings = { diagnostics, lsp } },
|
||||
{ hl = 'MiniStatuslineDevinfo', strings = { search } },
|
||||
{ hl = mode_hl, strings = { mode } },
|
||||
{ hl = mode_hl, strings = { mode } },
|
||||
}
|
||||
end,
|
||||
inactive = function()
|
||||
|
|
@ -124,7 +109,7 @@ return {
|
|||
local jj_sesh = require('plugins.lib.session_jj')
|
||||
local jj_id = jj_sesh.get_id()
|
||||
if jj_sesh.check_exists(jj_id) then
|
||||
Snacks.notify('Existing session for ' .. jj_id)
|
||||
vim.notify('Existing session for ' .. jj_id)
|
||||
end
|
||||
|
||||
local jump = require('mini.jump2d')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue