89 lines
2.6 KiB
Lua
Executable File
89 lines
2.6 KiB
Lua
Executable File
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)
|
|
|
|
vim.g.mapleader = " "
|
|
|
|
local plugins = {
|
|
{
|
|
"nvim-telescope/telescope.nvim",
|
|
version = "0.2.1",
|
|
dependencies = { { "nvim-lua/plenary.nvim" },
|
|
{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
|
|
},
|
|
},
|
|
{
|
|
"rose-pine/neovim",
|
|
name = "rose-pine",
|
|
config = function()
|
|
vim.cmd("colorscheme rose-pine")
|
|
end
|
|
},
|
|
{ "nvim-treesitter/nvim-treesitter", branch = "main", lazy = false, build = ":TSUpdate" },
|
|
{
|
|
"ThePrimeagen/harpoon",
|
|
branch = "harpoon2",
|
|
dependencies = { "nvim-lua/plenary.nvim" }
|
|
},
|
|
"mbbill/undotree",
|
|
"tpope/vim-fugitive",
|
|
"subnut/nvim-ghost.nvim",
|
|
-- "unblevable/quick-scope",
|
|
"andweeb/presence.nvim",
|
|
"numToStr/Comment.nvim",
|
|
-- "echasnovski/mini.align",
|
|
{
|
|
'stevearc/oil.nvim',
|
|
-- Optional dependencies
|
|
dependencies = { { "nvim-mini/mini.icons", opts = {} } },
|
|
-- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons
|
|
-- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations.
|
|
lazy = false,
|
|
},
|
|
{
|
|
-- The tmux `Prefix + z` behaviour
|
|
"szw/vim-maximizer",
|
|
keys = {
|
|
{ "<leader>z", "<cmd>MaximizerToggle<CR>" },
|
|
}
|
|
},
|
|
{
|
|
"VonHeikemen/lsp-zero.nvim",
|
|
branch = "v3.x",
|
|
dependencies = {
|
|
{ "williamboman/mason.nvim" },
|
|
{ "williamboman/mason-lspconfig.nvim" },
|
|
{ "neovim/nvim-lspconfig" },
|
|
{ "hrsh7th/nvim-cmp" },
|
|
{ "hrsh7th/cmp-nvim-lsp" },
|
|
{ "L3MON4D3/LuaSnip" },
|
|
}
|
|
},
|
|
{
|
|
"nvim-flutter/flutter-tools.nvim",
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
},
|
|
},
|
|
{
|
|
"goolord/alpha-nvim",
|
|
lazy = true,
|
|
event = "VimEnter",
|
|
cmd = "Alpha",
|
|
},
|
|
}
|
|
|
|
require("lazy").setup(plugins, {})
|