fix: Tabbing in paq.lua

This commit is contained in:
Sayantan Santra 2024-03-19 03:59:14 -05:00
parent 503635ea27
commit 032a6cd807
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

90
paq.lua
View file

@ -3,21 +3,21 @@ local function clone_paq()
local path = vim.fn.stdpath("data") .. "/site/pack/paqs/start/paq-nvim" local path = vim.fn.stdpath("data") .. "/site/pack/paqs/start/paq-nvim"
local is_installed = vim.fn.empty(vim.fn.glob(path)) == 0 local is_installed = vim.fn.empty(vim.fn.glob(path)) == 0
if not is_installed then if not is_installed then
vim.fn.system { "git", "clone", "--depth=1", "https://github.com/savq/paq-nvim.git", path } vim.fn.system { "git", "clone", "--depth=1", "https://github.com/savq/paq-nvim.git", path }
return true return true
end end
end end
local function bootstrap_paq(packages) local function bootstrap_paq(packages)
local first_install = clone_paq() local first_install = clone_paq()
vim.cmd.packadd("paq-nvim") vim.cmd.packadd("paq-nvim")
local paq = require("paq") local paq = require("paq")
if first_install then if first_install then
vim.notify("Installing plugins... If prompted, hit Enter to continue.") vim.notify("Installing plugins... If prompted, hit Enter to continue.")
paq.install() paq.install()
end end
paq(packages) paq(packages)
end end
-- Automatically install new packages at startup -- Automatically install new packages at startup
vim.api.nvim_create_autocmd("VimEnter", { vim.api.nvim_create_autocmd("VimEnter", {
@ -35,42 +35,42 @@ vim.api.nvim_create_autocmd("VimEnter", {
-- Load plugin via paq-nvim -- Load plugin via paq-nvim
bootstrap_paq { bootstrap_paq {
"savq/paq-nvim", "savq/paq-nvim",
-- airline related plugins -- airline related plugins
"vim-airline/vim-airline", "vim-airline/vim-airline",
"vim-airline/vim-airline-themes", "vim-airline/vim-airline-themes",
-- Auto commenting per filetype -- Auto commenting per filetype
"numToStr/Comment.nvim", "numToStr/Comment.nvim",
-- Give option to save files using sudo, if needed -- Give option to save files using sudo, if needed
"lambdalisue/suda.vim", "lambdalisue/suda.vim",
-- Auto toggle for number mode when vim isn't focused -- Auto toggle for number mode when vim isn't focused
"sitiom/nvim-numbertoggle", "sitiom/nvim-numbertoggle",
-- Plugin for lean -- Plugin for lean
"julian/lean.nvim", "julian/lean.nvim",
-- LSP related plugins -- LSP related plugins
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"hrsh7th/nvim-cmp", -- For LSP completion "hrsh7th/nvim-cmp", -- For LSP completion
"hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer", "hrsh7th/cmp-buffer",
"hrsh7th/cmp-omni", -- For LaTeX completion "hrsh7th/cmp-omni", -- For LaTeX completion
"hrsh7th/cmp-path", "hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline", "hrsh7th/cmp-cmdline",
"SirVer/ultisnips", -- For snippets "SirVer/ultisnips", -- For snippets
-- Support programming terms -- Support programming terms
{ "psliwka/vim-dirtytalk", build = ':let &rtp = &rtp | DirtytalkUpdate' }, { "psliwka/vim-dirtytalk", build = ':let &rtp = &rtp | DirtytalkUpdate' },
-- vim-moonfly theme -- vim-moonfly theme
{ "bluz71/vim-moonfly-colors", as = 'moonfly' }, { "bluz71/vim-moonfly-colors", as = 'moonfly' },
-- Rust tools -- Rust tools
"simrat39/rust-tools.nvim", "simrat39/rust-tools.nvim",
-- Automatically add bracket pairs -- Automatically add bracket pairs
"windwp/nvim-autopairs", "windwp/nvim-autopairs",
-- Syntax highlighting for Fish scripts -- Syntax highlighting for Fish scripts
"khaveesh/vim-fish-syntax", "khaveesh/vim-fish-syntax",
-- Plugin for LaTeX -- Plugin for LaTeX
"lervag/vimtex", "lervag/vimtex",
-- Formatter -- Formatter
"stevearc/conform.nvim", "stevearc/conform.nvim",
-- For Searching -- For Searching
"junegunn/fzf.vim", "junegunn/fzf.vim",
} }