use snacks indent
This commit is contained in:
parent
f6c84d7d5b
commit
584ad307d6
@ -6,6 +6,11 @@ local indent = 2
|
|||||||
opt.termguicolors = true -- Enable colors in terminal
|
opt.termguicolors = true -- Enable colors in terminal
|
||||||
opt.hlsearch = true --Set highlight on search
|
opt.hlsearch = true --Set highlight on search
|
||||||
opt.number = true --Make line numbers default
|
opt.number = true --Make line numbers default
|
||||||
|
opt.listchars:append('eol:↴')
|
||||||
|
-- opt.listchars:append("space: ")
|
||||||
|
-- opt.listchars:append 'space:⋅'
|
||||||
|
opt.listchars:append('trail: ')
|
||||||
|
opt.listchars:append('tab:→ ')
|
||||||
opt.relativenumber = false --Make relative number default
|
opt.relativenumber = false --Make relative number default
|
||||||
opt.mouse = 'a' --Enable mouse mode
|
opt.mouse = 'a' --Enable mouse mode
|
||||||
opt.breakindent = true --Enable break indent
|
opt.breakindent = true --Enable break indent
|
||||||
|
@ -1,47 +0,0 @@
|
|||||||
return {
|
|
||||||
'lukas-reineke/indent-blankline.nvim',
|
|
||||||
dependencies = {
|
|
||||||
'nvim-treesitter/nvim-treesitter',
|
|
||||||
},
|
|
||||||
main = 'ibl',
|
|
||||||
config = function()
|
|
||||||
local opt = vim.opt -- to set options
|
|
||||||
opt.listchars:append('eol:↴')
|
|
||||||
-- opt.listchars:append("space: ")
|
|
||||||
-- opt.listchars:append 'space:⋅'
|
|
||||||
opt.listchars:append('trail: ')
|
|
||||||
opt.listchars:append('tab:→ ')
|
|
||||||
local highlight = {
|
|
||||||
'RainbowRed',
|
|
||||||
'RainbowYellow',
|
|
||||||
'RainbowBlue',
|
|
||||||
'RainbowOrange',
|
|
||||||
'RainbowGreen',
|
|
||||||
'RainbowViolet',
|
|
||||||
'RainbowCyan',
|
|
||||||
}
|
|
||||||
|
|
||||||
local hooks = require('ibl.hooks')
|
|
||||||
-- create the highlight groups in the highlight setup hook, so they are reset
|
|
||||||
-- every time the colorscheme changes
|
|
||||||
hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
|
|
||||||
vim.api.nvim_set_hl(0, 'RainbowRed', { fg = '#E06C75' })
|
|
||||||
vim.api.nvim_set_hl(0, 'RainbowYellow', { fg = '#E5C07B' })
|
|
||||||
vim.api.nvim_set_hl(0, 'RainbowBlue', { fg = '#61AFEF' })
|
|
||||||
vim.api.nvim_set_hl(0, 'RainbowOrange', { fg = '#D19A66' })
|
|
||||||
vim.api.nvim_set_hl(0, 'RainbowGreen', { fg = '#98C379' })
|
|
||||||
vim.api.nvim_set_hl(0, 'RainbowViolet', { fg = '#C678DD' })
|
|
||||||
vim.api.nvim_set_hl(0, 'RainbowCyan', { fg = '#56B6C2' })
|
|
||||||
end)
|
|
||||||
|
|
||||||
vim.g.rainbow_delimiters = { highlight = highlight }
|
|
||||||
require('ibl').setup({
|
|
||||||
scope = {
|
|
||||||
highlight = highlight,
|
|
||||||
show_start = false,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark)
|
|
||||||
end,
|
|
||||||
}
|
|
@ -13,6 +13,24 @@ return {
|
|||||||
quickfile = { enabled = true },
|
quickfile = { enabled = true },
|
||||||
statuscolumn = { enabled = true },
|
statuscolumn = { enabled = true },
|
||||||
words = { enabled = true },
|
words = { enabled = true },
|
||||||
|
indent = {
|
||||||
|
indent = {
|
||||||
|
hl = 'CmpItemKindNull',
|
||||||
|
only_scope = false,
|
||||||
|
only_current = false,
|
||||||
|
},
|
||||||
|
enabled = true,
|
||||||
|
animate = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
scope = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
chunk = {
|
||||||
|
enabled = false,
|
||||||
|
hl = 'Debug',
|
||||||
|
},
|
||||||
|
},
|
||||||
dashboard = {
|
dashboard = {
|
||||||
sections = {
|
sections = {
|
||||||
{ section = 'header' },
|
{ section = 'header' },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user