summaryrefslogtreecommitdiff
path: root/lua/talha/lazy.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/talha/lazy.lua')
-rw-r--r--lua/talha/lazy.lua69
1 files changed, 21 insertions, 48 deletions
diff --git a/lua/talha/lazy.lua b/lua/talha/lazy.lua
index 4d7d798..fc79bae 100644
--- a/lua/talha/lazy.lua
+++ b/lua/talha/lazy.lua
@@ -1,50 +1,23 @@
-require("lazy").setup({
- { "nvim-lua/plenary.nvim" },
- {
- "nvim-telescope/telescope.nvim", version = "0.1.2",
- dependencies = { "nvim-lua/plenary.nvim" }
- },
- { "nvim-treesitter/nvim-treesitter",
- build = ":TSUpdate",
- config = function ()
- local configs = require("nvim-treesitter.configs")
-
- configs.setup({
- ensure_installed = {
- "c", "cpp",
- "vim", "vimdoc", "query",
- "javascript", "typescript",
- "python"
- },
- sync_install = false,
- highlight = {
- enable = true,
- additional_vim_regex_highlighting = false,
- },
- indent = { enable = true },
- })
- end
- },
- "Mofiqul/vscode.nvim",
- "theprimeagen/harpoon",
- "tpope/vim-fugitive",
- {
- "VonHeikemen/lsp-zero.nvim",
- branch = 'v2.x',
- dependencies = {
- -- LSP Support
- {'neovim/nvim-lspconfig'}, -- Required
- {'williamboman/mason.nvim'}, -- Optional
- {'williamboman/mason-lspconfig.nvim'}, -- Optional
+-- Bootstrap lazy.nvim
+local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
+if not (vim.uv or vim.loop).fs_stat(lazypath) then
+ local lazyrepo = "https://github.com/folke/lazy.nvim.git"
+ local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
+ if vim.v.shell_error ~= 0 then
+ vim.api.nvim_echo({
+ { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
+ { out, "WarningMsg" },
+ { "\nPress any key to exit..." },
+ }, true, {})
+ vim.fn.getchar()
+ os.exit(1)
+ end
+end
+vim.opt.rtp:prepend(lazypath)
- -- Autocompletion
- {'hrsh7th/nvim-cmp'}, -- Required
- {'hrsh7th/cmp-nvim-lsp'}, -- Required
- {'hrsh7th/cmp-buffer'}, -- Required
- {'hrsh7th/cmp-nvim-lua'},
- {'L3MON4D3/LuaSnip'}, -- Required
- }
- },
- --- @DISABLED
- -- "mbbill/undotree",
+require("lazy").setup({
+ "Mofiqul/vscode.nvim",
+ { "bluz71/vim-moonfly-colors", name = "moonfly", lazy = false, priority = 1000 },
+ { "nvim-lua/plenary.nvim" },
+ { import = "talha.plugins" },
})