Files
nvim/lua/nami/lazy.lua
2026-02-17 20:56:53 +01:00

111 lines
3.5 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)
-- opts.rocks.enabled = false
vim.g.mapleader = " "
local plugins = {
-- "wbthomason/packer.nvim",
{
"nvim-telescope/telescope.nvim",
version = "0.1.8",
-- or , branch = "0.1.x",
dependencies = { { "nvim-lua/plenary.nvim" } }
},
{
"rose-pine/neovim",
name = "rose-pine",
config = function()
vim.cmd("colorscheme rose-pine")
end
},
{
"nvim-treesitter/nvim-treesitter",
tag = "v0.10.0",
lazy = false,
build = ":TSUpdate"
-- build = function()
-- -- local ts_update = require("nvim-treesitter.install").update({ with_sync = true })
-- -- ts_update()
-- end
},
{
"ThePrimeagen/harpoon",
branch = "harpoon2",
dependencies = { "nvim-lua/plenary.nvim" }
},
-- "theprimeagen/harpoon",
"mbbill/undotree",
"tpope/vim-fugitive",
-- ("christoomey/vim-tmux-navigator")
-- "huggingface/llm.nvim",
"subnut/nvim-ghost.nvim",
"unblevable/quick-scope",
-- ({
-- "kr40/nvim-macros",
-- cmd = {"MacroSave", "MacroYank", "MacroSelect", "MacroDelete"},
-- opts = {
-- json_file_path = vim.fs.normalize(vim.fn.stdpath("config") .. "/macros.json"), -- Location where the macros will be stored
-- default_macro_register = "q", -- Use name default register for :MacroYank and :MacroSave and :MacroSelect Raw functions
-- json_formatter = "none", -- can be "none" | "jq" | "yq" used to pretty print the json file (jq or yq must be installed!)
-- }
-- })
"andweeb/presence.nvim",
"numToStr/Comment.nvim",
{
"epwalsh/obsidian.nvim",
version = "*",
dependencies = {
"nvim-lua/plenary.nvim"
}
},
"echasnovski/mini.align",
-- use {"kevinhwang91/nvim-ufo", dependencies = "kevinhwang91/promise-async"}
{
"VonHeikemen/lsp-zero.nvim",
branch = "v3.x",
dependencies = {
--- Uncomment the two plugins below if you want to manage the language servers from neovim
{ "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",
-- "stevearc/dressing.nvim", -- optional for vim.ui.select
},
},
{
"goolord/alpha-nvim",
lazy = true,
event = "VimEnter",
-- config = function()
-- require("user.plugins.settings.alpha")
-- end,
cmd = "Alpha",
}, -- Splash Screen
}
require("lazy").setup(plugins, {})