summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua
diff options
context:
space:
mode:
authorYigit Sever2021-11-21 23:01:04 +0300
committerYigit Sever2021-11-21 23:01:04 +0300
commitfeccedc230222679108362ff584a2860f784f334 (patch)
tree440d8c2cdb710a7fad4646ad6b06b9c077118819 /.config/nvim/lua
parent6093c9230bddceb7d3698edc5c476651129113f3 (diff)
downloaddotfiles-feccedc230222679108362ff584a2860f784f334.tar.gz
dotfiles-feccedc230222679108362ff584a2860f784f334.tar.bz2
dotfiles-feccedc230222679108362ff584a2860f784f334.zip
nvim: migrate to alpha
Diffstat (limited to '.config/nvim/lua')
-rw-r--r--.config/nvim/lua/plugin_settings.lua41
-rw-r--r--.config/nvim/lua/plugins.lua6
2 files changed, 27 insertions, 20 deletions
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 {
228require('telescope').load_extension('fzf') 228require('telescope').load_extension('fzf')
229-- }}} telescope -- 229-- }}} telescope --
230 230
231-- dashboard {{{ -- 231-- alpha-nvim {{{ --
232g.dashboard_default_executive = 'telescope' 232local alpha = require ("alpha")
233g.dashboard_preview_command = 'cat' 233local startify = require ("alpha.themes.startify")
234g.dashboard_preview_file = '~/.config/nvim/neovim.cat' 234
235g.dashboard_preview_file_height = 13 235-- Set header
236g.dashboard_preview_file_width = 90 236startify.section.header.val = {
237g.dashboard_footer_icon = '💃 ' 237" ▄ ▄███▄ ████▄ ▄ ▄█ █▀▄▀█ ",
238 238" █ █▀ ▀ █ █ █ ██ █ █ █ ",
239g.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 -- 246startify.section.footer = {
247 { type = "text", val = "footer" },
248}
249
250-- Send config to alpha
251alpha.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'