mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-01-09 05:58:11 +01:00
add alpha greeter plugin and remove all the cmp and lsp stuff for now
This commit is contained in:
parent
e40e653411
commit
211627d542
30
config/nvim/plugins/alpha.lua
Normal file
30
config/nvim/plugins/alpha.lua
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
local alpha = require("alpha")
|
||||||
|
local dashboard = require("alpha.themes.dashboard")
|
||||||
|
|
||||||
|
-- Set header
|
||||||
|
dashboard.section.header.val = {
|
||||||
|
" ",
|
||||||
|
" ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ",
|
||||||
|
" ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ",
|
||||||
|
" ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ",
|
||||||
|
" ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ",
|
||||||
|
" ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ",
|
||||||
|
" ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ",
|
||||||
|
" ",
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Set menu
|
||||||
|
dashboard.section.buttons.val = {
|
||||||
|
dashboard.button("e", " > New File", "<cmd>ene<CR>"),
|
||||||
|
dashboard.button("SPC fe", " > Toggle file explorer", "<cmd>NvimTreeToggle<CR>"),
|
||||||
|
dashboard.button("SPC ff", " > Find File", "<cmd>Telescope find_files<CR>"),
|
||||||
|
dashboard.button("SPC lg", " > Find Word", "<cmd>Telescope live_grep<CR>"),
|
||||||
|
dashboard.button("SPC wr", " > Restore Session For Current Directory", "<cmd>SessionRestore<CR>"),
|
||||||
|
dashboard.button("q", " > Quit NVIM", "<cmd>qa<CR>"),
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Send config to alpha
|
||||||
|
alpha.setup(dashboard.opts)
|
||||||
|
|
||||||
|
-- Disable folding on alpha buffer
|
||||||
|
vim.cmd([[autocmd FileType alpha setlocal nofoldenable]])
|
@ -183,6 +183,7 @@ in
|
|||||||
lua-language-server
|
lua-language-server
|
||||||
];
|
];
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
alpha-nvim
|
||||||
nvim-treesitter.withAllGrammars
|
nvim-treesitter.withAllGrammars
|
||||||
lualine-nvim
|
lualine-nvim
|
||||||
nvim-web-devicons
|
nvim-web-devicons
|
||||||
@ -193,23 +194,18 @@ in
|
|||||||
}
|
}
|
||||||
plenary-nvim
|
plenary-nvim
|
||||||
neodev-nvim
|
neodev-nvim
|
||||||
nvim-cmp
|
|
||||||
nvim-lspconfig
|
|
||||||
luasnip
|
luasnip
|
||||||
cmp_luasnip
|
|
||||||
cmp-nvim-lsp
|
|
||||||
telescope-nvim
|
telescope-nvim
|
||||||
nvim-tree-lua
|
nvim-tree-lua
|
||||||
telescope-fzf-native-nvim
|
telescope-fzf-native-nvim
|
||||||
vim-tmux-navigator
|
vim-tmux-navigator
|
||||||
];
|
];
|
||||||
extraLuaConfig = ''
|
extraLuaConfig = ''
|
||||||
${builtins.readFile ../../config/nvim/options.lua}
|
|
||||||
${builtins.readFile ../../config/nvim/keymaps.lua}
|
${builtins.readFile ../../config/nvim/keymaps.lua}
|
||||||
${builtins.readFile ../../config/nvim/plugins/cmp.lua}
|
${builtins.readFile ../../config/nvim/options.lua}
|
||||||
${builtins.readFile ../../config/nvim/plugins/lsp.lua}
|
${builtins.readFile ../../config/nvim/plugins/alpha.lua}
|
||||||
${builtins.readFile ../../config/nvim/plugins/telescope.lua}
|
|
||||||
${builtins.readFile ../../config/nvim/plugins/nvim-tree.lua}
|
${builtins.readFile ../../config/nvim/plugins/nvim-tree.lua}
|
||||||
|
${builtins.readFile ../../config/nvim/plugins/telescope.lua}
|
||||||
${builtins.readFile ../../config/nvim/plugins/treesitter.lua}
|
${builtins.readFile ../../config/nvim/plugins/treesitter.lua}
|
||||||
require("Comment").setup()
|
require("Comment").setup()
|
||||||
require("lualine").setup({
|
require("lualine").setup({
|
||||||
|
Loading…
Reference in New Issue
Block a user