Added ginit and fixed a few config files

Signed-off-by: The-Repo-Club <wayne6324@gmail.com>
This commit is contained in:
The-Repo-Club 2022-08-17 07:59:12 +01:00
parent 8fc60af63c
commit 79dcde852e
No known key found for this signature in database
GPG Key ID: E30EC2FBFB05C44F
6 changed files with 35 additions and 10 deletions

View File

@ -0,0 +1,23 @@
" Enable Mouse
set mouse=a
" Disable GUI Tabline
if exists(':GuiTabline')
GuiTabline 0
endif
" Disable GUI Popupmenu
if exists(':GuiPopupmenu')
GuiPopupmenu 0
endif
" Enable GUI ScrollBar
if exists(':GuiScrollBar')
GuiScrollBar 0
endif
" Right Click Context Menu (Copy-Cut-Paste)
nnoremap <silent><RightMouse> :call GuiShowContextMenu()<CR>
inoremap <silent><RightMouse> <Esc>:call GuiShowContextMenu()<CR>
xnoremap <silent><RightMouse> :call GuiShowContextMenu()<CR>
snoremap <silent><RightMouse> <C-G>:call GuiShowContextMenu()<CR>

View File

@ -97,7 +97,7 @@ M.edit_config = function()
elseif selected_config == 16 then elseif selected_config == 16 then
vim.cmd(string.format("%s %s%snvim-tree.lua", open_command, M.nvim_config_user_root, M.sep)) vim.cmd(string.format("%s %s%snvim-tree.lua", open_command, M.nvim_config_user_root, M.sep))
elseif selected_config == 17 then elseif selected_config == 17 then
vim.cmd(string.format("%s %s%aoptions.lua", open_command, M.nvim_config_user_root, M.sep)) vim.cmd(string.format("%s %s%soptions.lua", open_command, M.nvim_config_user_root, M.sep))
elseif selected_config == 18 then elseif selected_config == 18 then
vim.cmd(string.format("%s %s%splugins.lua", open_command, M.nvim_config_user_root, M.sep)) vim.cmd(string.format("%s %s%splugins.lua", open_command, M.nvim_config_user_root, M.sep))
elseif selected_config == 19 then elseif selected_config == 19 then

View File

@ -13,7 +13,7 @@ dashboard.section.header.val = {
" o888ooooo88 888oo88 o88o 88 o88o o888o ", " o888ooooo88 888oo88 o88o 88 o88o o888o ",
" ", " ",
" ", " ",
" [ Think NeoVim Author:The-Repo-Club ] ", " [ Think LunaVim Author:The-Repo-Club ] ",
} }
dashboard.section.buttons.val = { dashboard.section.buttons.val = {
dashboard.button("f", " Find file", ":Telescope find_files <CR>"), dashboard.button("f", " Find file", ":Telescope find_files <CR>"),
@ -21,17 +21,15 @@ dashboard.section.buttons.val = {
dashboard.button("p", " Find project", ":Telescope projects <CR>"), dashboard.button("p", " Find project", ":Telescope projects <CR>"),
dashboard.button("r", " Recently used files", ":Telescope oldfiles <CR>"), dashboard.button("r", " Recently used files", ":Telescope oldfiles <CR>"),
dashboard.button("t", " Find text", ":Telescope live_grep <CR>"), dashboard.button("t", " Find text", ":Telescope live_grep <CR>"),
dashboard.button("c", " Configuration", ":EditConfiguration <CR>"), dashboard.button("c", " Configuration", ":EditConfiguration <CR>"),
dashboard.button("q", " Quit Neovim", ":qa<CR>"), dashboard.button("q", " Quit LunaVim", ":qa <CR>"),
} }
local loaded = vim.fn.printf("%.3f", vim.fn.reltimefloat(vim.fn.reltime(vim.g.start_time)))
dashboard.section.footer.val = { dashboard.section.footer.val = {
" ", " ",
" ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ", " ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ",
" ┃ ╔═══════════════════════════════════════╗ ┃ ", " ┃ ╔═══════════════════════════════════════╗ ┃ ",
" ┃ ║ Think NeoVim ^_^ ║ ┃ ", " ┃ ║ Think LunaVim ^_^ ║ ┃ ",
" ┃ ║ ║ ┃ ", " ┃ ║ ║ ┃ ",
" ┃ ║ Talk is cheap Show us the code. ║ ┃ ", " ┃ ║ Talk is cheap Show us the code. ║ ┃ ",
" ┃ ║ ║ ┃ ", " ┃ ║ ║ ┃ ",
@ -39,7 +37,6 @@ dashboard.section.footer.val = {
" ┃ ╚═══════════════════════════════════════╝ ┃ ", " ┃ ╚═══════════════════════════════════════╝ ┃ ",
" ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ ", " ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ ",
" ", " ",
" Nvim loaded in " .. loaded .. " seconds. ",
} }
dashboard.section.footer.opts.hl = "Type" dashboard.section.footer.opts.hl = "Type"

View File

@ -26,6 +26,11 @@ header.setup({
end_comment = "##", end_comment = "##",
fill_comment = "#", fill_comment = "#",
}, },
sh = {
start_comment = "##",
end_comment = "##",
fill_comment = "#",
},
lua = { lua = {
start_comment = "--", start_comment = "--",
end_comment = "--", end_comment = "--",

View File

@ -54,7 +54,7 @@ nvim_tree.setup({
}, },
}, },
view = { view = {
width = 30, width = 40,
height = 30, height = 30,
side = "left", side = "left",
mappings = { mappings = {

View File

@ -34,7 +34,7 @@ local options = {
scrolloff = 8, -- is one of my fav scrolloff = 8, -- is one of my fav
sidescrolloff = 8, sidescrolloff = 8,
laststatus = 2, laststatus = 2,
guifont = "monospace:h17", -- the font used in graphical neovim applications guifont = "SauceCodePro Nerd Font:h12", -- the font used in graphical neovim applications
} }
vim.opt.shortmess:append("c") vim.opt.shortmess:append("c")