Uma nova config
This commit is contained in:
parent
4a0b56e102
commit
af3406b844
|
@ -1,295 +1,7 @@
|
|||
-- Basic Config --
|
||||
-- Vimscript --
|
||||
vim.cmd([[
|
||||
let g:netrw_banner = 0
|
||||
let g:netrw_winsize = 50
|
||||
let g:netrw_browse_split = 5
|
||||
set listchars=tab:>-,trail:~,extends:>,precedes:<,space:·
|
||||
set list
|
||||
map <up> <nop>
|
||||
map <down> <nop>
|
||||
map <left> <nop>
|
||||
map <right> <nop>
|
||||
imap <up> <nop>
|
||||
imap <down> <nop>
|
||||
imap <left> <nop>
|
||||
imap <right> <nop>
|
||||
set wildignore+=blue.vim,darkblue.vim,default.vim,delek.vim,desert.vim,
|
||||
\elflord.vim,evening.vim,industry.vim,koehler.vim,morning.vim,
|
||||
\pablo.vim,peachpuff.vim,ron.vim,shine.vim,slate.vim,torte.vim,
|
||||
\zellner.vim,habamax.vim,lunaperche.vim,quiet.vim,retrobox.vim,
|
||||
\sorbet.vim,wildcharm.vim,zaibatsu.vim,murphy.vim,
|
||||
]])
|
||||
require("core.default.vim")
|
||||
require("core.default.nvim")
|
||||
require("core.plugins")
|
||||
require("core.plugin_config.init")
|
||||
require("core.keybinds")
|
||||
|
||||
-- Lua --
|
||||
-- booleans --
|
||||
vim.o.number = true
|
||||
vim.o.cursorline = true
|
||||
vim.o.hlsearch = true
|
||||
vim.o.ignorecase = true
|
||||
vim.o.smartcase = true
|
||||
vim.o.expandtab = true
|
||||
vim.o.autoindent = true
|
||||
vim.o.showmatch = true
|
||||
vim.o.hidden = true
|
||||
vim.o.termguicolors = true
|
||||
vim.o.splitright = true
|
||||
vim.o.splitbellow = true
|
||||
|
||||
-- numbers --
|
||||
vim.o.mat = 2
|
||||
vim.o.tabstop = 4
|
||||
vim.o.softtabstop = 4
|
||||
vim.o.shiftwidth = 4
|
||||
vim.o.textwidth = 79
|
||||
vim.o.scrolloff = 8
|
||||
|
||||
-- strings --
|
||||
vim.o.signcolumn = "yes"
|
||||
vim.o.clipboard = "unnamed,unnamedplus"
|
||||
vim.o.colorcolumn = "80"
|
||||
|
||||
-- Advanced Config --
|
||||
-- Plugins --
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable",
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
require("lazy").setup({
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"prichrd/netrw.nvim",
|
||||
"folke/which-key.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-telescope/telescope.nvim",
|
||||
"lewis6991/gitsigns.nvim",
|
||||
"zaldih/themery.nvim",
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"akinsho/bufferline.nvim",
|
||||
version = "*",
|
||||
dependencies = "nvim-tree/nvim-web-devicons"
|
||||
},
|
||||
|
||||
{
|
||||
"nvimdev/dashboard-nvim",
|
||||
event = "VimEnter",
|
||||
dependencies = {
|
||||
{ "nvim-tree/nvim-web-devicons" }
|
||||
}
|
||||
},
|
||||
|
||||
-- Temas --
|
||||
{
|
||||
"catppuccin/nvim", name = "catppuccin"
|
||||
},
|
||||
"ellisonleao/gruvbox.nvim",
|
||||
"neanias/everforest-nvim",
|
||||
"navarasu/onedark.nvim",
|
||||
"EdenEast/nightfox.nvim",
|
||||
"folke/tokyonight.nvim",
|
||||
"rebelot/kanagawa.nvim",
|
||||
"xero/miasma.nvim",
|
||||
})
|
||||
|
||||
-- Plugin Config --
|
||||
require("lualine").setup()
|
||||
require("bufferline").setup()
|
||||
require("gitsigns").setup()
|
||||
require("dashboard").setup { shortcut_type = "number" }
|
||||
require("nvim-treesitter.configs").setup {
|
||||
ensure_installed = {
|
||||
"c", "lua", "vim", "rust", "bash", "markdown", "xml", "css",
|
||||
"html", "javascript", "ini", "toml", "yaml", "hare", "asm",
|
||||
"dockerfile", "python", "go"
|
||||
},
|
||||
highlight = { enable = true },
|
||||
}
|
||||
require"netrw".setup {
|
||||
icons = {
|
||||
symlink = "",
|
||||
directory = "",
|
||||
file = "",
|
||||
},
|
||||
use_devicons = true,
|
||||
}
|
||||
require("themery").setup({
|
||||
themes = {
|
||||
{
|
||||
name = "Gruvbox Dark",
|
||||
colorscheme = "gruvbox",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Gruvbox Light",
|
||||
colorscheme = "gruvbox",
|
||||
before = [[ vim.opt.background = "light" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Miasma",
|
||||
colorscheme = "miasma",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Everforest Dark",
|
||||
colorscheme = "everforest",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Everforest Light",
|
||||
colorscheme = "everforest",
|
||||
before = [[ vim.opt.background = "light" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Onedark",
|
||||
colorscheme = "onedark",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Tokyonight",
|
||||
colorscheme = "tokyonight",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Kanagawa Wave",
|
||||
colorscheme = "kanagawa-wave",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Kanagawa Dragon",
|
||||
colorscheme = "kanagawa-dragon",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Kanagawa Lotus",
|
||||
colorscheme = "kanagawa-lotus",
|
||||
before = [[ vim.opt.background = "light" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Catppuccin Mocha",
|
||||
colorscheme = "catppuccin-mocha",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Catppuccin Macchiato",
|
||||
colorscheme = "catppuccin-macchiato",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Catppuccin Frappe",
|
||||
colorscheme = "catppuccin-frappe",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Catppuccin Latte",
|
||||
colorscheme = "catppuccin-latte",
|
||||
before = [[ vim.opt.background = "light" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Carbonfox",
|
||||
colorscheme = "carbonfox",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Dawnfox",
|
||||
colorscheme = "dawnfox",
|
||||
before = [[ vim.opt.background = "light" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Dayfox",
|
||||
colorscheme = "dayfox",
|
||||
before = [[ vim.opt.background = "light" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Duskfox",
|
||||
colorscheme = "duskfox",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Nightfox",
|
||||
colorscheme = "nightfox",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Nordfox",
|
||||
colorscheme = "nordfox",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Terafox",
|
||||
colorscheme = "terafox",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
themeConfigFile = "~/.config/nvim/init.lua",
|
||||
livePreview = true,
|
||||
})
|
||||
-- Themery block
|
||||
-- This block will be replaced by Themery.
|
||||
vim.opt.background = "dark"
|
||||
|
||||
vim.cmd("colorscheme gruvbox")
|
||||
vim.g.theme_id = 1
|
||||
-- end themery block
|
||||
|
||||
-- Keybinds --
|
||||
vim.g.mapleader = " "
|
||||
local wk = require("which-key")
|
||||
wk.register({
|
||||
name = "Leader",
|
||||
a = {"<cmd>bp<cr>", "Buffer anterior"},
|
||||
d = {"<cmd>Dashboard<cr>", "Abrir Dashboard"},
|
||||
p = {"<cmd>bn<cr>", "Próximo buffer"},
|
||||
c = {"<cmd>bdel<cr>", "Fechar buffer"},
|
||||
v = {"<cmd>vs<cr>", "Split vertical"},
|
||||
m = {"<cmd>sp<cr>", "Split horizontal"},
|
||||
n = {"<cmd>Explore<cr>", "Explorador de arquivos"},
|
||||
s = {"<cmd>write<cr>", "Salvar"},
|
||||
q = {"<cmd>quit<cr>", "Fechar janela"},
|
||||
h = {"<c-w>h", "Janela à esquerda"},
|
||||
j = {"<c-w>j", "Janela abaixo"},
|
||||
k = {"<c-w>k", "Janela acima"},
|
||||
l = {"<c-w>l", "Janela à direita"},
|
||||
f = { "<cmd>Telescope find_files<cr>", "Encontrar arquivos" },
|
||||
b = {"<cmd>Telescope buffers<cr>", "Lista de buffers"},
|
||||
t = {"<cmd>Themery<cr>", "Temas"},
|
||||
g = {
|
||||
name = "Git",
|
||||
p = {"<cmd>Gitsigns preview_hunk<cr>", "Preview Hunk"},
|
||||
},
|
||||
}, { prefix = "<leader>" })
|
||||
|
|
23
.config/nvim/lazy-lock.json
Normal file
23
.config/nvim/lazy-lock.json
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"bufferline.nvim": { "branch": "main", "commit": "64e2c5def50dfd6b6f14d96a45fa3d815a4a1eef" },
|
||||
"catppuccin": { "branch": "main", "commit": "f66654d5d5190865333e8e46474c1593302c558e" },
|
||||
"dashboard-nvim": { "branch": "master", "commit": "39f308a0b845b8da46f83c8a2d69f0191d4b7a8f" },
|
||||
"everforest-nvim": { "branch": "main", "commit": "5e0e32a569fb464911342f0d421721cc1c94cf25" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "078041e9d060a386b0c9d3a8c7a7b019a35d3fb0" },
|
||||
"gruvbox.nvim": { "branch": "main", "commit": "6e4027ae957cddf7b193adfaec4a8f9e03b4555f" },
|
||||
"kanagawa.nvim": { "branch": "master", "commit": "bfa818c7bf6259152f1d89cf9fbfba3554c93695" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "0ccf0312270d2d976ec551a9034bf05720f2486b" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "b5e8bb642138f787a2c1c5aedc2a78cb2cebbd67" },
|
||||
"miasma.nvim": { "branch": "main", "commit": "c672feec07d4e77ac485ee58e3432a96ebe51953" },
|
||||
"netrw.nvim": { "branch": "master", "commit": "c64f60b8a613900aad82ef1c285b892eb43e9e15" },
|
||||
"nightfox.nvim": { "branch": "main", "commit": "e352a32e0f54feb2550ebdab815ae8f7f26ed63b" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "23ba63028c6acca29be6462c0a291fc4a1b9eae8" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "3ee60deaa539360518eaab93a6c701fe9f4d82ef" },
|
||||
"oil.nvim": { "branch": "master", "commit": "e462a3446505185adf063566f5007771b69027a1" },
|
||||
"onedark.nvim": { "branch": "master", "commit": "1230aaf2a427b2c5b73aba6e4a9a5881d3e69429" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "8aad4396840be7fc42896e3011751b7609ca4119" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "b22e6f6896cd64b109bd0807a24098d225d5fb49" },
|
||||
"themery.nvim": { "branch": "main", "commit": "1005a58801276d29c4b1e11244cf7631250f9143" },
|
||||
"tokyonight.nvim": { "branch": "main", "commit": "9bf9ec53d5e87b025e2404069b71e7ebdc3a13e5" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }
|
||||
}
|
29
.config/nvim/lua/core/default/nvim.lua
Normal file
29
.config/nvim/lua/core/default/nvim.lua
Normal file
|
@ -0,0 +1,29 @@
|
|||
-- booleans --
|
||||
vim.o.number = true
|
||||
vim.o.cursorline = true
|
||||
vim.o.hlsearch = true
|
||||
vim.o.ignorecase = true
|
||||
vim.o.smartcase = true
|
||||
vim.o.expandtab = true
|
||||
vim.o.autoindent = true
|
||||
vim.o.showmatch = true
|
||||
vim.o.hidden = true
|
||||
vim.o.termguicolors = true
|
||||
vim.o.splitright = true
|
||||
vim.o.splitbellow = true
|
||||
vim.o.list = true
|
||||
|
||||
-- numbers --
|
||||
vim.o.mat = 2
|
||||
vim.o.tabstop = 4
|
||||
vim.o.softtabstop = 4
|
||||
vim.o.shiftwidth = 4
|
||||
vim.o.textwidth = 79
|
||||
vim.o.scrolloff = 8
|
||||
|
||||
-- strings --
|
||||
vim.o.signcolumn = "yes"
|
||||
vim.o.clipboard = "unnamed,unnamedplus"
|
||||
vim.o.colorcolumn = "80"
|
||||
vim.o.listchars = "tab:>-,trail:~,extends:>,precedes:<,space:·"
|
||||
|
18
.config/nvim/lua/core/default/vim.lua
Normal file
18
.config/nvim/lua/core/default/vim.lua
Normal file
|
@ -0,0 +1,18 @@
|
|||
vim.cmd([[
|
||||
let g:netrw_banner = 0
|
||||
let g:netrw_winsize = 50
|
||||
let g:netrw_browse_split = 5
|
||||
map <up> <nop>
|
||||
map <down> <nop>
|
||||
map <left> <nop>
|
||||
map <right> <nop>
|
||||
imap <up> <nop>
|
||||
imap <down> <nop>
|
||||
imap <left> <nop>
|
||||
imap <right> <nop>
|
||||
set wildignore+=blue.vim,darkblue.vim,default.vim,delek.vim,desert.vim,
|
||||
\elflord.vim,evening.vim,industry.vim,koehler.vim,morning.vim,
|
||||
\pablo.vim,peachpuff.vim,ron.vim,shine.vim,slate.vim,torte.vim,
|
||||
\zellner.vim,habamax.vim,lunaperche.vim,quiet.vim,retrobox.vim,
|
||||
\sorbet.vim,wildcharm.vim,zaibatsu.vim,murphy.vim,
|
||||
]])
|
25
.config/nvim/lua/core/keybinds.lua
Normal file
25
.config/nvim/lua/core/keybinds.lua
Normal file
|
@ -0,0 +1,25 @@
|
|||
vim.g.mapleader = " "
|
||||
local wk = require("which-key")
|
||||
wk.register({
|
||||
name = "Leader",
|
||||
a = {"<cmd>bp<cr>", "Buffer anterior"},
|
||||
d = {"<cmd>Dashboard<cr>", "Abrir Dashboard"},
|
||||
p = {"<cmd>bn<cr>", "Próximo buffer"},
|
||||
c = {"<cmd>bdel<cr>", "Fechar buffer"},
|
||||
v = {"<cmd>vs<cr>", "Split vertical"},
|
||||
m = {"<cmd>sp<cr>", "Split horizontal"},
|
||||
n = {"<cmd>Oil --float<cr>", "Explorador de arquivos"},
|
||||
s = {"<cmd>write<cr>", "Salvar"},
|
||||
q = {"<cmd>quit<cr>", "Fechar janela"},
|
||||
h = {"<c-w>h", "Janela à esquerda"},
|
||||
j = {"<c-w>j", "Janela abaixo"},
|
||||
k = {"<c-w>k", "Janela acima"},
|
||||
l = {"<c-w>l", "Janela à direita"},
|
||||
f = { "<cmd>Telescope find_files<cr>", "Encontrar arquivos" },
|
||||
b = {"<cmd>Telescope buffers<cr>", "Lista de buffers"},
|
||||
t = {"<cmd>Themery<cr>", "Temas"},
|
||||
g = {
|
||||
name = "Git",
|
||||
p = {"<cmd>Gitsigns preview_hunk<cr>", "Preview Hunk"},
|
||||
},
|
||||
}, { prefix = "<leader>" })
|
1
.config/nvim/lua/core/plugin_config/bufferline.lua
Normal file
1
.config/nvim/lua/core/plugin_config/bufferline.lua
Normal file
|
@ -0,0 +1 @@
|
|||
require("bufferline").setup()
|
4
.config/nvim/lua/core/plugin_config/dashboard.lua
Normal file
4
.config/nvim/lua/core/plugin_config/dashboard.lua
Normal file
|
@ -0,0 +1,4 @@
|
|||
require("dashboard").setup {
|
||||
theme = "hyper",
|
||||
shortcut_type = "number",
|
||||
}
|
1
.config/nvim/lua/core/plugin_config/gitsigns.lua
Normal file
1
.config/nvim/lua/core/plugin_config/gitsigns.lua
Normal file
|
@ -0,0 +1 @@
|
|||
require("gitsigns").setup()
|
7
.config/nvim/lua/core/plugin_config/init.lua
Normal file
7
.config/nvim/lua/core/plugin_config/init.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
require("core.plugin_config.lualine")
|
||||
require("core.plugin_config.bufferline")
|
||||
require("core.plugin_config.treesitter")
|
||||
require("core.plugin_config.dashboard")
|
||||
require("core.plugin_config.gitsigns")
|
||||
require("core.plugin_config.themery")
|
||||
require("core.plugin_config.oil")
|
1
.config/nvim/lua/core/plugin_config/lualine.lua
Normal file
1
.config/nvim/lua/core/plugin_config/lualine.lua
Normal file
|
@ -0,0 +1 @@
|
|||
require("lualine").setup()
|
13
.config/nvim/lua/core/plugin_config/oil.lua
Normal file
13
.config/nvim/lua/core/plugin_config/oil.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
require("oil").setup({
|
||||
default_file_explorer = true,
|
||||
view_options = { show_hidden = true },
|
||||
float = {
|
||||
padding = 2,
|
||||
max_width = 60,
|
||||
max_height = 20,
|
||||
border = "rounded",
|
||||
win_options = {
|
||||
winblend = 0,
|
||||
},
|
||||
},
|
||||
})
|
141
.config/nvim/lua/core/plugin_config/themery.lua
Normal file
141
.config/nvim/lua/core/plugin_config/themery.lua
Normal file
|
@ -0,0 +1,141 @@
|
|||
require("themery").setup({
|
||||
themes = {
|
||||
{
|
||||
name = "Gruvbox Dark",
|
||||
colorscheme = "gruvbox",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Gruvbox Light",
|
||||
colorscheme = "gruvbox",
|
||||
before = [[ vim.opt.background = "light" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Miasma",
|
||||
colorscheme = "miasma",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Everforest Dark",
|
||||
colorscheme = "everforest",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Everforest Light",
|
||||
colorscheme = "everforest",
|
||||
before = [[ vim.opt.background = "light" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Onedark",
|
||||
colorscheme = "onedark",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Tokyonight",
|
||||
colorscheme = "tokyonight",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Kanagawa Wave",
|
||||
colorscheme = "kanagawa-wave",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Kanagawa Dragon",
|
||||
colorscheme = "kanagawa-dragon",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Kanagawa Lotus",
|
||||
colorscheme = "kanagawa-lotus",
|
||||
before = [[ vim.opt.background = "light" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Catppuccin Mocha",
|
||||
colorscheme = "catppuccin-mocha",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Catppuccin Macchiato",
|
||||
colorscheme = "catppuccin-macchiato",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Catppuccin Frappe",
|
||||
colorscheme = "catppuccin-frappe",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Catppuccin Latte",
|
||||
colorscheme = "catppuccin-latte",
|
||||
before = [[ vim.opt.background = "light" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Carbonfox",
|
||||
colorscheme = "carbonfox",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Dawnfox",
|
||||
colorscheme = "dawnfox",
|
||||
before = [[ vim.opt.background = "light" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Dayfox",
|
||||
colorscheme = "dayfox",
|
||||
before = [[ vim.opt.background = "light" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Duskfox",
|
||||
colorscheme = "duskfox",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Nightfox",
|
||||
colorscheme = "nightfox",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Nordfox",
|
||||
colorscheme = "nordfox",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
{
|
||||
name = "Terafox",
|
||||
colorscheme = "terafox",
|
||||
before = [[ vim.opt.background = "dark" ]],
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
themeConfigFile = "~/.config/nvim/lua/core/plugin_config/themery.lua",
|
||||
livePreview = true,
|
||||
})
|
||||
|
||||
-- Themery block
|
||||
-- This block will be replaced by Themery.
|
||||
vim.opt.background = "dark"
|
||||
|
||||
vim.cmd("colorscheme gruvbox")
|
||||
vim.g.theme_id = 1
|
||||
-- end themery block
|
8
.config/nvim/lua/core/plugin_config/treesitter.lua
Normal file
8
.config/nvim/lua/core/plugin_config/treesitter.lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
require("nvim-treesitter.configs").setup {
|
||||
ensure_installed = {
|
||||
"c", "lua", "vim", "rust", "bash", "markdown", "xml", "css",
|
||||
"html", "javascript", "ini", "toml", "yaml", "hare", "asm",
|
||||
"dockerfile", "python", "go"
|
||||
},
|
||||
highlight = { enable = true },
|
||||
}
|
41
.config/nvim/lua/core/plugins.lua
Normal file
41
.config/nvim/lua/core/plugins.lua
Normal file
|
@ -0,0 +1,41 @@
|
|||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable",
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
require("lazy").setup({
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"folke/which-key.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-telescope/telescope.nvim",
|
||||
"lewis6991/gitsigns.nvim",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
"zaldih/themery.nvim",
|
||||
"nvim-lualine/lualine.nvim",
|
||||
'stevearc/oil.nvim',
|
||||
"akinsho/bufferline.nvim",
|
||||
|
||||
{
|
||||
"nvimdev/dashboard-nvim",
|
||||
event = "VimEnter",
|
||||
},
|
||||
|
||||
-- Temas --
|
||||
{
|
||||
"catppuccin/nvim", name = "catppuccin"
|
||||
},
|
||||
"ellisonleao/gruvbox.nvim",
|
||||
"neanias/everforest-nvim",
|
||||
"navarasu/onedark.nvim",
|
||||
"EdenEast/nightfox.nvim",
|
||||
"folke/tokyonight.nvim",
|
||||
"rebelot/kanagawa.nvim",
|
||||
"xero/miasma.nvim",
|
||||
})
|
Loading…
Reference in a new issue