diff options
Diffstat (limited to '.config/nvim/lua')
-rw-r--r-- | .config/nvim/lua/plugin_settings.lua | 54 | ||||
-rw-r--r-- | .config/nvim/lua/plugins.lua | 7 |
2 files changed, 34 insertions, 27 deletions
diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua index 78b0792..6b02db4 100644 --- a/.config/nvim/lua/plugin_settings.lua +++ b/.config/nvim/lua/plugin_settings.lua | |||
@@ -246,30 +246,39 @@ require('telescope').setup { | |||
246 | require('telescope').load_extension('fzf') | 246 | require('telescope').load_extension('fzf') |
247 | -- }}} telescope -- | 247 | -- }}} telescope -- |
248 | 248 | ||
249 | -- alpha-nvim {{{ -- | 249 | -- dashboard {{{ -- |
250 | local alpha = require ("alpha") | 250 | |
251 | local startify = require ("alpha.themes.startify") | 251 | local home = os.getenv('HOME') |
252 | 252 | local db = require('dashboard') | |
253 | -- Set header | 253 | db.custom_header = { |
254 | startify.section.header.val = { | 254 | '', |
255 | " ▄ ▄███▄ ████▄ ▄ ▄█ █▀▄▀█ ", | 255 | ' ▄ ▄███▄ ████▄ ▄ ▄█ █▀▄▀█ ', |
256 | " █ █▀ ▀ █ █ █ ██ █ █ █ ", | 256 | ' █ █▀ ▀ █ █ █ ██ █ █ █ ', |
257 | "██ █ ██▄▄ █ █ █ █ ██ █ ▄ █ ", | 257 | '██ █ ██▄▄ █ █ █ █ ██ █ ▄ █ ', |
258 | "█ █ █ █▄ ▄▀ ▀████ █ █ ▐█ █ █ ", | 258 | '█ █ █ █▄ ▄▀ ▀████ █ █ ▐█ █ █ ', |
259 | "█ █ █ ▀███▀ █ █ ▐ █ ", | 259 | '█ █ █ ▀███▀ █ █ ▐ █ ', |
260 | "█ ██ █▐ ▀ ", | 260 | '█ ██ █▐ ▀ ', |
261 | " ▐ ", | 261 | ' ▐ ', |
262 | '', | ||
263 | '', | ||
262 | } | 264 | } |
263 | 265 | db.custom_center = { | |
264 | startify.section.footer = { | 266 | { |
265 | { type = "text", val = "footer" }, | 267 | desc = 'new file ', |
268 | action = 'DashboardNewFile', | ||
269 | }, | ||
270 | { | ||
271 | desc = 'find files ', | ||
272 | action = 'Telescope find_files', | ||
273 | }, | ||
274 | { | ||
275 | desc = 'old files', | ||
276 | action = "Telescope oldfiles", | ||
277 | } | ||
266 | } | 278 | } |
279 | db.custom_footer = { '⛅' } | ||
267 | 280 | ||
268 | -- Send config to alpha | 281 | -- }}} dashboard -- |
269 | alpha.setup(startify.opts) | ||
270 | |||
271 | |||
272 | -- }}} alpha-nvim -- | ||
273 | 282 | ||
274 | -- treesitter {{{ -- | 283 | -- treesitter {{{ -- |
275 | 284 | ||
@@ -439,7 +448,6 @@ require('rust-tools').setup(rust_opts) | |||
439 | 448 | ||
440 | -- }}} rust-tools -- | 449 | -- }}} rust-tools -- |
441 | 450 | ||
442 | |||
443 | -- }}} nvim-lsp -- | 451 | -- }}} nvim-lsp -- |
444 | 452 | ||
445 | -- vista {{{ -- | 453 | -- vista {{{ -- |
@@ -453,7 +461,7 @@ require("indent_blankline").setup { | |||
453 | show_current_context = true, | 461 | show_current_context = true, |
454 | char = "┊", | 462 | char = "┊", |
455 | buftype_exclude = {"terminal"}, | 463 | buftype_exclude = {"terminal"}, |
456 | filetype_exclude = {"alpha", "help", "ledger", "man"} | 464 | filetype_exclude = {"dashboard", "help", "ledger", "man"} |
457 | } | 465 | } |
458 | -- }}} indent-blankline -- | 466 | -- }}} indent-blankline -- |
459 | 467 | ||
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 427f619..ec03289 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua | |||
@@ -41,10 +41,7 @@ return require('packer').startup(function(use) | |||
41 | } | 41 | } |
42 | 42 | ||
43 | -- dashboard | 43 | -- dashboard |
44 | use { | 44 | use 'glepnir/dashboard-nvim' |
45 | 'goolord/alpha-nvim', | ||
46 | requires = { 'kyazdani42/nvim-web-devicons' } | ||
47 | } | ||
48 | 45 | ||
49 | -- completion suite | 46 | -- completion suite |
50 | use 'hrsh7th/nvim-cmp' | 47 | use 'hrsh7th/nvim-cmp' |
@@ -141,6 +138,8 @@ return require('packer').startup(function(use) | |||
141 | -- comment helper | 138 | -- comment helper |
142 | use 'numToStr/Comment.nvim' | 139 | use 'numToStr/Comment.nvim' |
143 | 140 | ||
141 | -- icon pack | ||
142 | use 'kyazdani42/nvim-web-devicons' | ||
144 | -- statusline of the $CURRENT_YEAR | 143 | -- statusline of the $CURRENT_YEAR |
145 | use { | 144 | use { |
146 | 'nvim-lualine/lualine.nvim', | 145 | 'nvim-lualine/lualine.nvim', |