From feccedc230222679108362ff584a2860f784f334 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 21 Nov 2021 23:01:04 +0300 Subject: nvim: migrate to alpha --- .config/fish/config.fish | 2 +- .config/nvim/lua/plugin_settings.lua | 41 ++++++++++++++++++++---------------- .config/nvim/lua/plugins.lua | 6 ++++-- 3 files changed, 28 insertions(+), 21 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index f9c378b..8e75d6b 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -2,7 +2,7 @@ fish_add_path $HOME/.local/bin set --global --export EDITOR nvim set --global --export PAGER "less -R" -set --global --export MANPAGER nvim +Man! +set --global --export MANPAGER nvim -c Man! set --global --export GOPATH $HOME/.local/share/go set --global --export GPG_TTY (tty) set --global fish_prompt_pwd_dir_length 0 diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua index a09bcac..fe43156 100644 --- a/.config/nvim/lua/plugin_settings.lua +++ b/.config/nvim/lua/plugin_settings.lua @@ -228,25 +228,30 @@ require('telescope').setup { require('telescope').load_extension('fzf') -- }}} telescope -- --- dashboard {{{ -- -g.dashboard_default_executive = 'telescope' -g.dashboard_preview_command = 'cat' -g.dashboard_preview_file = '~/.config/nvim/neovim.cat' -g.dashboard_preview_file_height = 13 -g.dashboard_preview_file_width = 90 -g.dashboard_footer_icon = '💃 ' - -g.dashboard_custom_shortcut = { - last_session = ' s l', - find_history = ' f h', - find_file = ' f f', - new_file = ' c n', - change_colorscheme = ' t c', - find_word = ' f a', - book_marks = ' f b', +-- alpha-nvim {{{ -- +local alpha = require ("alpha") +local startify = require ("alpha.themes.startify") + +-- Set header +startify.section.header.val = { +" ▄ ▄███▄ ████▄ ▄ ▄█ █▀▄▀█ ", +" █ █▀ ▀ █ █ █ ██ █ █ █ ", +"██ █ ██▄▄ █ █ █ █ ██ █ ▄ █ ", +"█ █ █ █▄ ▄▀ ▀████ █ █ ▐█ █ █ ", +"█ █ █ ▀███▀ █ █ ▐ █ ", +"█ ██ █▐ ▀ ", +" ▐ ", } --- }}} dashboard -- +startify.section.footer = { + { type = "text", val = "footer" }, +} + +-- Send config to alpha +alpha.setup(startify.opts) + + +-- }}} alpha-nvim -- -- treesitter {{{ -- @@ -360,7 +365,7 @@ require("indent_blankline").setup { show_current_context = true, char = "┊", buftype_exclude = {"terminal"}, - filetype_exclude = {"dashboard", "help", "ledger", "man"} + filetype_exclude = {"alpha", "help", "ledger", "man"} } -- }}} indent-blankline -- diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index a412fda..4c66bd3 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -20,8 +20,10 @@ return require('packer').startup(function() -- quickstart lsp config use 'neovim/nvim-lspconfig' -- dashboard - use 'glepnir/dashboard-nvim' - + use { + 'goolord/alpha-nvim', + requires = { 'kyazdani42/nvim-web-devicons' } + } -- completion suite use 'hrsh7th/nvim-cmp' use 'hrsh7th/cmp-nvim-lsp' -- cgit v1.2.3-70-g09d2