mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-21 19:58:59 +02:00
my nvim kickstart config
This commit is contained in:
parent
3338d39206
commit
032e12dbee
3 changed files with 60 additions and 3 deletions
6
init.lua
6
init.lua
|
@ -91,7 +91,7 @@ vim.g.mapleader = ' '
|
||||||
vim.g.maplocalleader = ' '
|
vim.g.maplocalleader = ' '
|
||||||
|
|
||||||
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
||||||
vim.g.have_nerd_font = false
|
vim.g.have_nerd_font = true
|
||||||
|
|
||||||
-- [[ Setting options ]]
|
-- [[ Setting options ]]
|
||||||
-- See `:help vim.o`
|
-- See `:help vim.o`
|
||||||
|
@ -102,7 +102,7 @@ vim.g.have_nerd_font = false
|
||||||
vim.o.number = true
|
vim.o.number = true
|
||||||
-- You can also add relative line numbers, to help with jumping.
|
-- You can also add relative line numbers, to help with jumping.
|
||||||
-- Experiment for yourself to see if you like it!
|
-- Experiment for yourself to see if you like it!
|
||||||
-- vim.o.relativenumber = true
|
vim.o.relativenumber = true
|
||||||
|
|
||||||
-- Enable mouse mode, can be useful for resizing splits for example!
|
-- Enable mouse mode, can be useful for resizing splits for example!
|
||||||
vim.o.mouse = 'a'
|
vim.o.mouse = 'a'
|
||||||
|
@ -984,7 +984,7 @@ require('lazy').setup({
|
||||||
-- This is the easiest way to modularize your config.
|
-- This is the easiest way to modularize your config.
|
||||||
--
|
--
|
||||||
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
||||||
-- { import = 'custom.plugins' },
|
{ import = 'custom.plugins' },
|
||||||
--
|
--
|
||||||
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
|
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
|
||||||
-- Or use telescope!
|
-- Or use telescope!
|
||||||
|
|
11
lua/custom/plugins/coc.lua
Normal file
11
lua/custom/plugins/coc.lua
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
return {
|
||||||
|
-- outros plugins já existentes...
|
||||||
|
|
||||||
|
{
|
||||||
|
'neoclide/coc.nvim',
|
||||||
|
branch = 'release',
|
||||||
|
build = 'yarn install --frozen-lockfile',
|
||||||
|
},
|
||||||
|
|
||||||
|
-- outros plugins se houver...
|
||||||
|
}
|
46
lua/custom/plugins/dashboard.lua
Normal file
46
lua/custom/plugins/dashboard.lua
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
'nvimdev/dashboard-nvim',
|
||||||
|
event = 'VimEnter',
|
||||||
|
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||||
|
config = function()
|
||||||
|
-- Footer dinâmico
|
||||||
|
local function footer()
|
||||||
|
local stats = require('lazy').stats()
|
||||||
|
local plugins = stats.count
|
||||||
|
local ms = (math.floor(stats.startuptime * 100) / 100)
|
||||||
|
return '⚡ Neovim carregado com ' .. plugins .. ' plugins em ' .. ms .. 'ms'
|
||||||
|
end
|
||||||
|
|
||||||
|
require('dashboard').setup {
|
||||||
|
theme = 'doom',
|
||||||
|
config = {
|
||||||
|
header = {
|
||||||
|
'',
|
||||||
|
' ░▒▓██████▓▒░░▒▓███████▓▒░░▒▓████████▓▒░▒▓█▓▒░ ░▒▓██████▓▒░░▒▓███████▓▒░░▒▓█▓▒░▒▓███████▓▒░ ',
|
||||||
|
'░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ',
|
||||||
|
'░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ',
|
||||||
|
'░▒▓████████▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓██████▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒▒▓███▓▒░▒▓███████▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ',
|
||||||
|
'░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ',
|
||||||
|
'░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ',
|
||||||
|
'░▒▓█▓▒░░▒▓█▓▒░▒▓███████▓▒░░▒▓████████▓▒░▒▓████████▓▒░▒▓██████▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ',
|
||||||
|
' ',
|
||||||
|
' ',
|
||||||
|
},
|
||||||
|
|
||||||
|
center = {
|
||||||
|
{ icon = ' ', desc = 'New File ', action = 'ene | startinsert', key = 'n' },
|
||||||
|
{ icon = ' ', desc = 'Find File ', action = 'Telescope find_files', key = 'f' },
|
||||||
|
{ icon = ' ', desc = 'Find Word ', action = 'Telescope live_grep', key = 'w' },
|
||||||
|
{ icon = ' ', desc = 'Recent Files ', action = 'Telescope oldfiles', key = 'r' },
|
||||||
|
{ icon = ' ', desc = 'Projects ', action = 'Telescope projects', key = 'p' },
|
||||||
|
{ icon = ' ', desc = 'Neovim Config ', action = 'edit ~/.config/nvim/init.lua', key = 'c' },
|
||||||
|
{ icon = ' ', desc = 'Update Plugins ', action = 'Lazy update', key = 'u' },
|
||||||
|
{ icon = ' ', desc = 'Quit ', action = 'qa', key = 'q' },
|
||||||
|
},
|
||||||
|
footer = { footer() },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue