Files
nix-config-ryan4yin/home/base/desktop/neovim/lua/modules/ui/config.lua
2023-07-11 02:49:15 +08:00

62 lines
1.3 KiB
Lua

local config = {}
function config.zephyr()
vim.cmd('colorscheme zephyr')
end
function config.dashboard()
local db = require('dashboard')
db.setup({
theme = 'hyper',
config = {
week_header = {
enable = true,
},
shortcut = {
{ desc = ' Update', group = '@property', action = 'Lazy update', key = 'u' },
{
desc = ' Find Files',
group = 'Label',
action = 'Telescope find_files',
key = 'f',
},
{
desc = '󱘎 File Tree',
group = 'DiagnosticHint',
action = 'Neotree',
key = 't',
},
},
},
})
end
function config.nvim_bufferline()
require('bufferline').setup({
options = {
modified_icon = '',
buffer_close_icon = '',
always_show_bufferline = true,
},
})
end
function config.indent_blankline()
require('indent_blankline').setup({
char = '',
use_treesitter_scope = true,
show_first_indent_level = true,
show_current_context = false,
show_current_context_start = false,
show_current_context_start_on_current_line = false,
filetype_exclude = {
'dashboard',
'log',
'TelescopePrompt',
},
buftype_exclude = { 'terminal', 'nofile', 'prompt' },
})
end
return config