update ibl
This commit is contained in:
parent
1058bae518
commit
8784b4890c
|
@ -193,7 +193,7 @@ return {
|
|||
{ 'gL', '<Plug>(leap-backward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap backward to' },
|
||||
{ '<leader>wgl', '<Plug>(leap-from-window)', mode = { 'n', 'x', 'o' }, desc = 'Leap to windows' },
|
||||
},
|
||||
config = function ()
|
||||
config = function()
|
||||
local leap = require('leap')
|
||||
leap.opts.case_sensitive = false
|
||||
leap.opts.safe_labels = { 'f', 'n', 'u', 't', 'g', 'ö', 'w', 'b', 'm' }
|
||||
|
@ -294,7 +294,24 @@ return {
|
|||
{ '<leader>St', '<cmd>TodoTelescope<cr>', desc = 'Todo' },
|
||||
{ '<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 },
|
||||
-- stylua: ignore
|
||||
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 workspace_diagnostics<cr>', desc = 'Workspace Diagnostics (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>zt', '<Cmd>ZkTags<CR>', desc = 'Zk Tags' },
|
||||
{ '<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' },
|
||||
},
|
||||
opts = { picker = 'telescope' },
|
||||
|
@ -468,7 +508,13 @@ return {
|
|||
-- stylua: ignore
|
||||
keys = {
|
||||
{ '<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 = {
|
||||
mapping = {
|
||||
|
|
|
@ -7,7 +7,9 @@ return {
|
|||
{ 'nvim-tree/nvim-web-devicons', 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'
|
||||
},
|
||||
|
||||
|
@ -22,12 +24,24 @@ return {
|
|||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ '<S-Enter>', function() require('noice').redirect(tostring(vim.fn.getcmdline())) end, mode = 'c', desc = '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' },
|
||||
{ '<S-Enter>', function() require('noice').redirect(tostring(vim.fn.getcmdline())) end, mode = 'c',
|
||||
desc =
|
||||
'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' },
|
||||
{ '<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-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'}},
|
||||
{ '<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-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
|
||||
opts = {
|
||||
|
@ -224,14 +238,16 @@ return {
|
|||
keys = {
|
||||
{ '<Leader>ue', '<cmd>IndentBlanklineToggle<CR>' },
|
||||
},
|
||||
main = "ibl",
|
||||
opts = {
|
||||
show_trailing_blankline_indent = false,
|
||||
remove_blankline_trail = false,
|
||||
disable_with_nolist = true,
|
||||
show_foldtext = false,
|
||||
char_priority = 100,
|
||||
show_current_context = true,
|
||||
show_current_context_start = false,
|
||||
filetype_exclude = {
|
||||
exclude = {
|
||||
filetypes = {
|
||||
'lspinfo',
|
||||
'checkhealth',
|
||||
'git',
|
||||
|
@ -248,6 +264,7 @@ return {
|
|||
'Outline',
|
||||
'mason',
|
||||
'Trouble',
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue