mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-26 01:48:27 +02:00
fix: neovim
This commit is contained in:
67
home/base/desktop/neovim/lua/modules/ui/config.lua
Normal file
67
home/base/desktop/neovim/lua/modules/ui/config.lua
Normal file
@@ -0,0 +1,67 @@
|
||||
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 = ' Files',
|
||||
group = 'Label',
|
||||
action = 'Telescope find_files',
|
||||
key = 'f',
|
||||
},
|
||||
{
|
||||
desc = ' Apps',
|
||||
group = 'DiagnosticHint',
|
||||
action = 'Telescope app',
|
||||
key = 'a',
|
||||
},
|
||||
{
|
||||
desc = ' dotfiles',
|
||||
group = 'Number',
|
||||
action = 'Telescope dotfiles',
|
||||
key = 'd',
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
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
|
||||
Reference in New Issue
Block a user