diff options
| author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-14 19:06:50 +0200 | 
|---|---|---|
| committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-14 19:10:08 +0200 | 
| commit | fb3c96d50d625db725940625120012c75afc17f6 (patch) | |
| tree | ac50ce1016f2fbb97ae1a7bf04f75be2559e078d /init.lua | |
| download | gabrielgio.lua-fb3c96d50d625db725940625120012c75afc17f6.tar.gz gabrielgio.lua-fb3c96d50d625db725940625120012c75afc17f6.tar.bz2 gabrielgio.lua-fb3c96d50d625db725940625120012c75afc17f6.zip | |
feat: Initial commit
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 41 | 
1 files changed, 41 insertions, 0 deletions
| diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..d06a37f --- /dev/null +++ b/init.lua @@ -0,0 +1,41 @@ +local packer = require("packer") + +local pkgs = { +    "wbthomason/packer.nvim",                       -- packer manager +    "folke/trouble.nvim",                           -- diagnostics +    "mfussenegger/nvim-dap",                        -- add dap support +    "leoluz/nvim-dap-go",                           -- add some utilites to go +    "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 +    "echasnovski/mini.nvim",                        -- provides many things +    "jose-elias-alvarez/null-ls.nvim",              -- enriches lsp +    "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 +    "williamboman/mason.nvim",                      -- manages many things +    "neovim/nvim-lspconfig",                        -- lsp support +} + +local function startup(use) +    use("nvim-treesitter/nvim-treesitter", {run = ":TSUpdate"}) +    use("fatih/vim-go", {run = ":GoUpdateBinaries"}) +    for _, value in ipairs(pkgs) do use(value) end +end + +packer.startup(startup) + +local neogit = require("neogit") +local null_ls = require("null-ls") +local mason = require("mason") + +null_ls.setup({sources = {null_ls.builtins.diagnostics.golangci_lint}}) +neogit.setup() +mason.setup() + +require("gabrielgio") | 
