-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
40 lines (33 loc) · 2.53 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
-- Make sure Packer is loaded
vim.cmd [[packadd packer.nvim]]
-- Packer initialization
local packer = require('plugins.packer')
require('core.config') -- General settings
require('core.keymaps') -- Keyboard shortcuts
packer.startup(function(use)
require('core.plugins')(use) -- Calling the function to install plugins
end)
--vim.cmd('source ~/.config/nvim/init.vim') -- For Linux/Macos(Optional)
-- vim.cmd('source C:\\Users\\<username>\\AppData\\Local\\nvim\\init.vim') -- For Windows (replace <username> with your username) (Optional)
-- dashboard-nvim
require('core.dashboard').setup {
theme = 'hyper', -- Theme(default:hyper)
config = {
header = {
[[░██████╗░██╗░░░░░░█████╗░██████╗░██╗░░░██╗██╗░░░██╗██╗███╗░░░███╗]],
[[██╔════╝░██║░░░░░██╔══██╗██╔══██╗╚██╗░██╔╝██║░░░██║██║████╗░████║]],
[[██║░░██╗░██║░░░░░██║░░██║██████╔╝░╚████╔╝░╚██╗░██╔╝██║██╔████╔██║]],
[[██║░░╚██╗██║░░░░░██║░░██║██╔══██╗░░╚██╔╝░░░╚████╔╝░██║██║╚██╔╝██║]],
[[╚██████╔╝███████╗╚█████╔╝██║░░██║░░░██║░░░░░╚██╔╝░░██║██║░╚═╝░██║]],
[[░╚═════╝░╚══════╝░╚════╝░╚═╝░░╚═╝░░░╚═╝░░░░░░╚═╝░░░╚═╝╚═╝░░░░░╚═╝]],
},
center = {
{icon = ' ', desc = 'Recently opened files ', action = 'Telescope oldfiles', key = 'r'},
{icon = ' ', desc = 'Find file ', action = 'Telescope find_files', key = 'f'},
{icon = ' ', desc = 'Find text ', action = 'Telescope live_grep', key = 'g'},
{icon = ' ', desc = 'Open configuration ', action = 'edit ~/.config/nvim/init.lua', key = 'c'},
{icon = ' ', desc = 'Exit ', action = 'exit', key = 'q'},
},
footer = {"Neovim - GloryVim"},
}
}