diff options
author | Yigit Sever | 2021-11-21 23:01:04 +0300 |
---|---|---|
committer | Yigit Sever | 2021-11-21 23:01:04 +0300 |
commit | feccedc230222679108362ff584a2860f784f334 (patch) | |
tree | 440d8c2cdb710a7fad4646ad6b06b9c077118819 | |
parent | 6093c9230bddceb7d3698edc5c476651129113f3 (diff) | |
download | dotfiles-feccedc230222679108362ff584a2860f784f334.tar.gz dotfiles-feccedc230222679108362ff584a2860f784f334.tar.bz2 dotfiles-feccedc230222679108362ff584a2860f784f334.zip |
nvim: migrate to alpha
-rw-r--r-- | .config/fish/config.fish | 2 | ||||
-rw-r--r-- | .config/nvim/lua/plugin_settings.lua | 41 | ||||
-rw-r--r-- | .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 | |||
2 | 2 | ||
3 | set --global --export EDITOR nvim | 3 | set --global --export EDITOR nvim |
4 | set --global --export PAGER "less -R" | 4 | set --global --export PAGER "less -R" |
5 | set --global --export MANPAGER nvim +Man! | 5 | set --global --export MANPAGER nvim -c Man! |
6 | set --global --export GOPATH $HOME/.local/share/go | 6 | set --global --export GOPATH $HOME/.local/share/go |
7 | set --global --export GPG_TTY (tty) | 7 | set --global --export GPG_TTY (tty) |
8 | set --global fish_prompt_pwd_dir_length 0 | 8 | 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 { | |||
228 | require('telescope').load_extension('fzf') | 228 | require('telescope').load_extension('fzf') |
229 | -- }}} telescope -- | 229 | -- }}} telescope -- |
230 | 230 | ||
231 | -- dashboard {{{ -- | 231 | -- alpha-nvim {{{ -- |
232 | g.dashboard_default_executive = 'telescope' | 232 | local alpha = require ("alpha") |
233 | g.dashboard_preview_command = 'cat' | 233 | local startify = require ("alpha.themes.startify") |
234 | g.dashboard_preview_file = '~/.config/nvim/neovim.cat' | 234 | |
235 | g.dashboard_preview_file_height = 13 | 235 | -- Set header |
236 | g.dashboard_preview_file_width = 90 | 236 | startify.section.header.val = { |
237 | g.dashboard_footer_icon = '💃 ' | 237 | " ▄ ▄███▄ ████▄ ▄ ▄█ █▀▄▀█ ", |
238 | 238 | " █ █▀ ▀ █ █ █ ██ █ █ █ ", | |
239 | g.dashboard_custom_shortcut = { | 239 | "██ █ ██▄▄ █ █ █ █ ██ █ ▄ █ ", |
240 | last_session = '<leader> s l', | 240 | "█ █ █ █▄ ▄▀ ▀████ █ █ ▐█ █ █ ", |
241 | find_history = '<leader> f h', | 241 | "█ █ █ ▀███▀ █ █ ▐ █ ", |
242 | find_file = '<leader> f f', | 242 | "█ ██ █▐ ▀ ", |
243 | new_file = '<leader> c n', | 243 | " ▐ ", |
244 | change_colorscheme = '<leader> t c', | ||
245 | find_word = '<leader> f a', | ||
246 | book_marks = '<leader> f b', | ||
247 | } | 244 | } |
248 | 245 | ||
249 | -- }}} dashboard -- | 246 | startify.section.footer = { |
247 | { type = "text", val = "footer" }, | ||
248 | } | ||
249 | |||
250 | -- Send config to alpha | ||
251 | alpha.setup(startify.opts) | ||
252 | |||
253 | |||
254 | -- }}} alpha-nvim -- | ||
250 | 255 | ||
251 | -- treesitter {{{ -- | 256 | -- treesitter {{{ -- |
252 | 257 | ||
@@ -360,7 +365,7 @@ require("indent_blankline").setup { | |||
360 | show_current_context = true, | 365 | show_current_context = true, |
361 | char = "┊", | 366 | char = "┊", |
362 | buftype_exclude = {"terminal"}, | 367 | buftype_exclude = {"terminal"}, |
363 | filetype_exclude = {"dashboard", "help", "ledger", "man"} | 368 | filetype_exclude = {"alpha", "help", "ledger", "man"} |
364 | } | 369 | } |
365 | -- }}} indent-blankline -- | 370 | -- }}} indent-blankline -- |
366 | 371 | ||
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() | |||
20 | -- quickstart lsp config | 20 | -- quickstart lsp config |
21 | use 'neovim/nvim-lspconfig' | 21 | use 'neovim/nvim-lspconfig' |
22 | -- dashboard | 22 | -- dashboard |
23 | use 'glepnir/dashboard-nvim' | 23 | use { |
24 | 24 | 'goolord/alpha-nvim', | |
25 | requires = { 'kyazdani42/nvim-web-devicons' } | ||
26 | } | ||
25 | -- completion suite | 27 | -- completion suite |
26 | use 'hrsh7th/nvim-cmp' | 28 | use 'hrsh7th/nvim-cmp' |
27 | use 'hrsh7th/cmp-nvim-lsp' | 29 | use 'hrsh7th/cmp-nvim-lsp' |