This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
linux/.config/nvim/lua/plugin/Init.lua

79 lines
2.5 KiB
Lua
Raw Normal View History

2023-08-08 16:24:15 +03:00
local ensure_packer = function()
2023-12-05 21:47:36 +03:00
local fn = vim.fn
local install_path = fn.stdpath("data").."/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({"git", "clone", "--depth", "1", "https://git.voronind.com/mirror/packer.nvim.git", install_path})
vim.cmd [[packadd packer.nvim]]
return true
end
return false
2023-08-08 16:24:15 +03:00
end
local packer_bootstrap = ensure_packer()
local available = function(commands)
2023-12-05 21:47:36 +03:00
for _, command in ipairs(commands) do
if vim.fn.executable(command) ~= 1 then
return false
end
end
return true
2023-08-08 16:24:15 +03:00
end
2023-11-18 04:58:23 +03:00
return require("packer").startup(function(use)
2023-12-05 21:47:36 +03:00
use "https://git.voronind.com/mirror/SingleComment.nvim.git"
use "https://git.voronind.com/mirror/autoclose.nvim.git"
2024-02-06 15:25:18 +03:00
use "https://git.voronind.com/mirror/bufferline.nvim.git"
2023-12-05 21:47:36 +03:00
use "https://git.voronind.com/mirror/close-buffers.nvim.git"
2024-02-06 15:25:18 +03:00
use "https://git.voronind.com/mirror/gitsigns.nvim.git"
2023-12-05 21:47:36 +03:00
use "https://git.voronind.com/mirror/gruvbox-material.git"
use "https://git.voronind.com/mirror/indent-o-matic.git"
2024-02-06 15:25:18 +03:00
use "https://git.voronind.com/mirror/lualine.nvim.git"
use "https://git.voronind.com/mirror/mason-lspconfig.nvim.git"
use "https://git.voronind.com/mirror/mason.nvim.git"
2023-12-13 23:17:40 +03:00
use "https://git.voronind.com/mirror/mini.align.git"
2024-02-06 15:25:18 +03:00
use "https://git.voronind.com/mirror/nvim-lspconfig.git"
use "https://git.voronind.com/mirror/nvim-tree.lua.git"
use "https://git.voronind.com/mirror/nvim-treesitter.git"
use "https://git.voronind.com/mirror/nvim-web-devicons.git"
use "https://git.voronind.com/mirror/packer.nvim.git"
use "https://git.voronind.com/mirror/plenary.nvim.git"
use "https://git.voronind.com/mirror/telescope.nvim.git"
use "https://git.voronind.com/mirror/todo-comments.nvim.git"
use "https://git.voronind.com/mirror/tokyonight.nvim.git"
use "https://git.voronind.com/mirror/trouble.nvim.git"
use "https://git.voronind.com/mirror/which-key.nvim.git"
2023-08-08 16:24:15 +03:00
2024-02-06 15:25:18 +03:00
-- Plugin toggles.
2023-12-05 21:47:36 +03:00
local treesitter = true
2023-08-08 16:24:15 +03:00
2024-02-06 15:25:18 +03:00
-- Plugin setup. Order is important.
require("plugin/Mason")
require("plugin/lsp/Init")
require("plugin/Filetree")
require("plugin/Bufferline")
require("plugin/Lualine")
require("plugin/Autoclose")
require("plugin/Gitsigns")
require("plugin/Trouble")
require("plugin/Tokyonight")
require("plugin/Gruvbox")
require("plugin/Closebuffers")
require("plugin/Telescope")
require("plugin/Todo")
require("plugin/Indent")
require("plugin/Align")
2023-08-08 16:24:15 +03:00
2023-12-05 21:47:36 +03:00
if available({"g++"}) then
if treesitter then
require("plugin/Treesitter")
require("plugin/Fold")
2023-12-05 21:47:36 +03:00
end
end
2024-02-06 15:25:18 +03:00
-- Auto-install.
if packer_bootstrap then
require("packer").sync()
end
2023-08-08 16:24:15 +03:00
end)