update ibl
This commit is contained in:
parent
1058bae518
commit
8784b4890c
|
@ -294,7 +294,24 @@ return {
|
||||||
{ '<leader>St', '<cmd>TodoTelescope<cr>', desc = 'Todo' },
|
{ '<leader>St', '<cmd>TodoTelescope<cr>', desc = 'Todo' },
|
||||||
{ '<leader>ST', '<cmd>TodoTelescope keywords=TODO,FIX,FIXME<cr>', desc = 'Todo/Fix/Fixme' },
|
{ '<leader>ST', '<cmd>TodoTelescope keywords=TODO,FIX,FIXME<cr>', desc = 'Todo/Fix/Fixme' },
|
||||||
},
|
},
|
||||||
opts = { signs = false },
|
opts = {
|
||||||
|
signs = true,
|
||||||
|
keywords = {
|
||||||
|
FIX = {
|
||||||
|
icon = " ", -- icon used for the sign, and in search results
|
||||||
|
color = "error", -- can be a hex color, or a named color (see below)
|
||||||
|
alt = { "FIXME", "BUG", "FIXIT", "ISSUE" }, -- a set of other keywords that all map to this FIX keywords
|
||||||
|
-- signs = false, -- configure signs for some keywords individually
|
||||||
|
},
|
||||||
|
TODO = { icon = " ", color = "info" },
|
||||||
|
HACK = { icon = " ", color = "warning" },
|
||||||
|
SECURITY = { icon = " ", color = "warning" },
|
||||||
|
WARN = { icon = " ", color = "warning", alt = { "WARNING", "XXX" } },
|
||||||
|
PERF = { icon = " ", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } },
|
||||||
|
NOTE = { icon = " ", color = "hint", alt = { "INFO" } },
|
||||||
|
TEST = { icon = "⏲ ", color = "test", alt = { "TESTING", "PASSED", "FAILED" } },
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
|
@ -304,8 +321,20 @@ return {
|
||||||
opts = { use_diagnostic_signs = true },
|
opts = { use_diagnostic_signs = true },
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ '<leader>e', '<cmd>TroubleToggle document_diagnostics<CR>', noremap = true, desc = 'Document Diagnostics' },
|
{
|
||||||
{ '<leader>r', '<cmd>TroubleToggle workspace_diagnostics<CR>', noremap = true, desc = 'Workspace Diagnostics' },
|
'<leader>e',
|
||||||
|
'<cmd>TroubleToggle document_diagnostics<CR>',
|
||||||
|
noremap = true,
|
||||||
|
desc =
|
||||||
|
'Document Diagnostics'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>r',
|
||||||
|
'<cmd>TroubleToggle workspace_diagnostics<CR>',
|
||||||
|
noremap = true,
|
||||||
|
desc =
|
||||||
|
'Workspace Diagnostics'
|
||||||
|
},
|
||||||
{ '<leader>xx', '<cmd>TroubleToggle document_diagnostics<cr>', desc = 'Document Diagnostics (Trouble)' },
|
{ '<leader>xx', '<cmd>TroubleToggle document_diagnostics<cr>', desc = 'Document Diagnostics (Trouble)' },
|
||||||
{ '<leader>xX', '<cmd>TroubleToggle workspace_diagnostics<cr>', desc = 'Workspace Diagnostics (Trouble)' },
|
{ '<leader>xX', '<cmd>TroubleToggle workspace_diagnostics<cr>', desc = 'Workspace Diagnostics (Trouble)' },
|
||||||
{ '<leader>xQ', '<cmd>TroubleToggle quickfix<cr>', desc = 'Quickfix List (Trouble)' },
|
{ '<leader>xQ', '<cmd>TroubleToggle quickfix<cr>', desc = 'Quickfix List (Trouble)' },
|
||||||
|
@ -455,8 +484,19 @@ return {
|
||||||
{ '<leader>zo', "<Cmd>ZkNotes { sort = { 'modified' } }<CR>", desc = 'Zk Notes' },
|
{ '<leader>zo', "<Cmd>ZkNotes { sort = { 'modified' } }<CR>", desc = 'Zk Notes' },
|
||||||
{ '<leader>zt', '<Cmd>ZkTags<CR>', desc = 'Zk Tags' },
|
{ '<leader>zt', '<Cmd>ZkTags<CR>', desc = 'Zk Tags' },
|
||||||
{ '<leader>zf', "<Cmd>ZkNotes { sort = { 'modified' }, match = vim.fn.input('Search: ') }<CR>", desc = 'Zk Search' },
|
{ '<leader>zf', "<Cmd>ZkNotes { sort = { 'modified' }, match = vim.fn.input('Search: ') }<CR>", desc = 'Zk Search' },
|
||||||
{ '<leader>zf', ":'<,'>ZkMatch<CR>", mode = 'x', desc = 'Zk Match' },
|
{
|
||||||
{ '<leader>zb', '<Cmd>ZkBacklinks<CR>', desc = 'Zk Backlinks' },
|
'<leader>zf',
|
||||||
|
":'<,'>ZkMatch<CR>",
|
||||||
|
mode = 'x',
|
||||||
|
desc =
|
||||||
|
'Zk Match'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>zb',
|
||||||
|
'<Cmd>ZkBacklinks<CR>',
|
||||||
|
desc =
|
||||||
|
'Zk Backlinks'
|
||||||
|
},
|
||||||
{ '<leader>zl', '<Cmd>ZkLinks<CR>', desc = 'Zk Links' },
|
{ '<leader>zl', '<Cmd>ZkLinks<CR>', desc = 'Zk Links' },
|
||||||
},
|
},
|
||||||
opts = { picker = 'telescope' },
|
opts = { picker = 'telescope' },
|
||||||
|
@ -468,7 +508,13 @@ return {
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ '<Leader>Sp', function() require('spectre').toggle() end, desc = 'Spectre', },
|
{ '<Leader>Sp', function() require('spectre').toggle() end, desc = 'Spectre', },
|
||||||
{ '<Leader>Sp', function() require('spectre').open_visual({ select_word = true }) end, mode = 'x', desc = 'Spectre Word' },
|
{
|
||||||
|
'<Leader>Sp',
|
||||||
|
function() require('spectre').open_visual({ select_word = true }) end,
|
||||||
|
mode = 'x',
|
||||||
|
desc =
|
||||||
|
'Spectre Word'
|
||||||
|
},
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
mapping = {
|
mapping = {
|
||||||
|
|
|
@ -7,7 +7,9 @@ return {
|
||||||
{ 'nvim-tree/nvim-web-devicons', lazy = false },
|
{ 'nvim-tree/nvim-web-devicons', lazy = false },
|
||||||
{ 'MunifTanjim/nui.nvim', lazy = false },
|
{ 'MunifTanjim/nui.nvim', lazy = false },
|
||||||
{
|
{
|
||||||
'akinsho/bufferline.nvim', lazy = false, version = "*",
|
'akinsho/bufferline.nvim',
|
||||||
|
lazy = false,
|
||||||
|
version = "*",
|
||||||
dependencies = 'nvim-tree/nvim-web-devicons'
|
dependencies = 'nvim-tree/nvim-web-devicons'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -22,12 +24,24 @@ return {
|
||||||
},
|
},
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ '<S-Enter>', function() require('noice').redirect(tostring(vim.fn.getcmdline())) end, mode = 'c', desc = 'Redirect Cmdline' },
|
{ '<S-Enter>', function() require('noice').redirect(tostring(vim.fn.getcmdline())) end, mode = 'c',
|
||||||
{ '<leader>Snl', function() require('noice').cmd('last') end, desc = 'Noice Last Message' },
|
desc =
|
||||||
{ '<leader>Snh', function() require('noice').cmd('history') end, desc = 'Noice History' },
|
'Redirect Cmdline' },
|
||||||
|
{ '<leader>Snl', function() require('noice').cmd('last') end, desc =
|
||||||
|
'Noice Last Message' },
|
||||||
|
{ '<leader>Snh', function() require('noice').cmd('history') end, desc =
|
||||||
|
'Noice History' },
|
||||||
{ '<leader>Sna', function() require('noice').cmd('all') end, desc = 'Noice All' },
|
{ '<leader>Sna', function() require('noice').cmd('all') end, desc = 'Noice All' },
|
||||||
{ '<c-f>', function() if not require('noice.lsp').scroll(4) then return '<c-f>' end end, silent = true, expr = true, desc = 'Scroll forward', mode = {'i', 'n', 's'} },
|
{ '<c-f>', function() if not require('noice.lsp').scroll(4) then return '<c-f>' end end, silent = true,
|
||||||
{ '<c-b>', function() if not require('noice.lsp').scroll(-4) then return '<c-b>' end end, silent = true, expr = true, desc = 'Scroll backward', mode = {'i', 'n', 's'}},
|
expr = true,
|
||||||
|
desc =
|
||||||
|
'Scroll forward', mode = {
|
||||||
|
'i', 'n', 's' } },
|
||||||
|
{ '<c-b>', function() if not require('noice.lsp').scroll(-4) then return '<c-b>' end end, silent = true,
|
||||||
|
expr = true,
|
||||||
|
desc =
|
||||||
|
'Scroll backward', mode = {
|
||||||
|
'i', 'n', 's' } },
|
||||||
},
|
},
|
||||||
---@type NoiceConfig
|
---@type NoiceConfig
|
||||||
opts = {
|
opts = {
|
||||||
|
@ -224,14 +238,16 @@ return {
|
||||||
keys = {
|
keys = {
|
||||||
{ '<Leader>ue', '<cmd>IndentBlanklineToggle<CR>' },
|
{ '<Leader>ue', '<cmd>IndentBlanklineToggle<CR>' },
|
||||||
},
|
},
|
||||||
|
main = "ibl",
|
||||||
opts = {
|
opts = {
|
||||||
show_trailing_blankline_indent = false,
|
remove_blankline_trail = false,
|
||||||
disable_with_nolist = true,
|
disable_with_nolist = true,
|
||||||
show_foldtext = false,
|
show_foldtext = false,
|
||||||
char_priority = 100,
|
char_priority = 100,
|
||||||
show_current_context = true,
|
show_current_context = true,
|
||||||
show_current_context_start = false,
|
show_current_context_start = false,
|
||||||
filetype_exclude = {
|
exclude = {
|
||||||
|
filetypes = {
|
||||||
'lspinfo',
|
'lspinfo',
|
||||||
'checkhealth',
|
'checkhealth',
|
||||||
'git',
|
'git',
|
||||||
|
@ -248,6 +264,7 @@ return {
|
||||||
'Outline',
|
'Outline',
|
||||||
'mason',
|
'mason',
|
||||||
'Trouble',
|
'Trouble',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue