aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorGabriel A. Giovanini <g.giovanini@gridx.de>2024-09-02 16:18:16 +0200
committerGabriel A. Giovanini <g.giovanini@gridx.de>2024-09-02 16:18:16 +0200
commit6f2e38e183bcf1faa864ebb11b162c99fd4a0130 (patch)
tree36b4385279c6c18fff9be2a6027dc2f2742dd311 /init.lua
parent48058d41be724eacdb2cfc2356468802ccb3242b (diff)
downloadgabrielgio.lua-6f2e38e183bcf1faa864ebb11b162c99fd4a0130.tar.gz
gabrielgio.lua-6f2e38e183bcf1faa864ebb11b162c99fd4a0130.tar.bz2
gabrielgio.lua-6f2e38e183bcf1faa864ebb11b162c99fd4a0130.zip
feat: Sync
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua88
1 files changed, 51 insertions, 37 deletions
diff --git a/init.lua b/init.lua
index f894f72..8760687 100644
--- a/init.lua
+++ b/init.lua
@@ -1,53 +1,67 @@
-local path_package = vim.fn.stdpath('data') .. '/site/'
-local mini_path = path_package .. 'pack/deps/start/mini.nvim'
+local path_package = vim.fn.stdpath("data") .. "/site/"
+local mini_path = path_package .. "pack/deps/start/mini.nvim"
+
if not vim.loop.fs_stat(mini_path) then
- vim.cmd('echo "Installing `mini.nvim`" | redraw')
- local clone_cmd = {
- 'git', 'clone', '--filter=blob:none',
- 'https://github.com/echasnovski/mini.nvim', mini_path
- }
- vim.fn.system(clone_cmd)
- vim.cmd('packadd mini.nvim | helptags ALL')
- vim.cmd('echo "Installed `mini.nvim`" | redraw')
+ vim.cmd('echo "Installing `mini.nvim`" | redraw')
+ local clone_cmd = {
+ "git",
+ "clone",
+ "--filter=blob:none",
+ "https://github.com/echasnovski/mini.nvim",
+ mini_path,
+ }
+ vim.fn.system(clone_cmd)
+ vim.cmd("packadd mini.nvim | helptags ALL")
+ vim.cmd('echo "Installed `mini.nvim`" | redraw')
end
-local mini_deps = require('mini.deps')
+local mini_deps = require("mini.deps")
local add = mini_deps.add
mini_deps.setup({ path = { package = path_package } })
local pkgs = {
- "folke/trouble.nvim", -- diagnostics
- "mfussenegger/nvim-dap", -- add dap support
- "nvim-neotest/nvim-nio", -- async support library
- "nvim-lua/plenary.nvim", -- base lib
- "nvim-telescope/telescope.nvim", -- telescope
- "nvim-telescope/telescope-file-browser.nvim", -- telescope file browser
- "TimUntersberger/neogit", -- magit
- "f-person/git-blame.nvim", -- more git info
- "echasnovski/mini.nvim", -- provides many things
- "mhartington/formatter.nvim", -- provider formatter
- "mfussenegger/nvim-lint", -- general linter
- "nvim-treesitter/nvim-treesitter-context", -- show context of where it is at the code
- "mbbill/undotree", -- keep track of undos
- "simrat39/symbols-outline.nvim", -- symbols tree (lsp aware)
- "caenrique/nvim-toggle-terminal", -- help with toggle from and to terminals [DEPRECATED]
- "RRethy/vim-illuminate", -- hightlight use of the same word (lsp aware)
- "sainnhe/edge", -- light theme
- "ellisonleao/gruvbox.nvim", -- light theme
- "williamboman/mason.nvim", -- manages many things
- "williamboman/mason-lspconfig.nvim", -- glue mason and lspconfig
- "neovim/nvim-lspconfig", -- lsp support
+ "folke/trouble.nvim", -- diagnostics
+ "mfussenegger/nvim-dap", -- add dap support
+ "nvim-neotest/nvim-nio", -- async support library
+ "nvim-lua/plenary.nvim", -- base lib
+ "nvim-telescope/telescope.nvim", -- telescope
+ "nvim-telescope/telescope-file-browser.nvim", -- telescope file browser
+ "TimUntersberger/neogit", -- magit
+ "f-person/git-blame.nvim", -- more git info
+ "echasnovski/mini.nvim", -- provides many things
+ "mhartington/formatter.nvim", -- provider formatter
+ "mfussenegger/nvim-lint", -- general linter
+ "nvim-treesitter/nvim-treesitter-context", -- show context of where it is at the code
+ "mbbill/undotree", -- keep track of undos
+ "simrat39/symbols-outline.nvim", -- symbols tree (lsp aware)
+ "caenrique/nvim-toggle-terminal", -- help with toggle from and to terminals [DEPRECATED]
+ "RRethy/vim-illuminate", -- hightlight use of the same word (lsp aware)
+ "sainnhe/edge", -- light theme
+ "ellisonleao/gruvbox.nvim", -- light theme
+ "williamboman/mason.nvim", -- manages many things
+ "williamboman/mason-lspconfig.nvim", -- glue mason and lspconfig
+ "neovim/nvim-lspconfig", -- lsp support
}
add({
- source = "nvim-treesitter/nvim-treesitter",
- hooks = { post_checkout = function() vim.cmd('TSUpdate') end },
+ source = "nvim-treesitter/nvim-treesitter",
+ hooks = {
+ post_checkout = function()
+ vim.cmd("TSUpdate")
+ end,
+ },
})
add({
- source = "fatih/vim-go",
- hooks = { post_checkout = function() vim.cmd('GoUpdateBinaries') end },
+ source = "fatih/vim-go",
+ hooks = {
+ post_checkout = function()
+ vim.cmd("GoUpdateBinaries")
+ end,
+ },
})
-for _, value in ipairs(pkgs) do add({source = value}) end
+for _, value in ipairs(pkgs) do
+ add({ source = value })
+end
require("gabrielgio")