diff options
| author | Yigit Sever | 2022-12-17 17:56:15 +0300 |
|---|---|---|
| committer | Yigit Sever | 2022-12-17 17:56:15 +0300 |
| commit | 2ef2c8d8d3aab7079d7d27a134a4fc6ee20fde0c (patch) | |
| tree | 2db4fb3fea000e5485466f2e9cb99e38f4663a26 /.config/nvim/lua/plugin_settings.lua | |
| parent | 4ace0a7ee4b9249e07bd0be74193fd513b6d4ca0 (diff) | |
| download | dotfiles-2ef2c8d8d3aab7079d7d27a134a4fc6ee20fde0c.tar.gz dotfiles-2ef2c8d8d3aab7079d7d27a134a4fc6ee20fde0c.tar.bz2 dotfiles-2ef2c8d8d3aab7079d7d27a134a4fc6ee20fde0c.zip | |
feat(nvim): switch alpha to dashboard
Diffstat (limited to '.config/nvim/lua/plugin_settings.lua')
| -rw-r--r-- | .config/nvim/lua/plugin_settings.lua | 54 |
1 files changed, 31 insertions, 23 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 | ||
