win-nvim/lua/zak/plugins.lua

108 lines
3.0 KiB
Lua

-- This file can be loaded by calling `lua require('plugins')` from your init.vim
-- Bootstrap lazy.nvim if not already installed
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
'--branch=stable', -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
return require('lazy').setup({
{
'nvim-lualine/lualine.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' }
},
-- 'github/copilot.vim',
{
'numToStr/Comment.nvim',
opts = {
-- add any options here
},
lazy = false,
},
{
'nvim-telescope/telescope.nvim',
tag = '0.1.7',
dependencies = { 'nvim-lua/plenary.nvim' }
},
{ "catppuccin/nvim", name = "catppuccin", priority = 1000 },
-- {
-- 'rose-pine/neovim',
-- name = 'rose-pine',
-- config = function()
-- vim.cmd('colorscheme rose-pine')
-- end
-- },
{
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim",
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
}
},
{
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate'
},
'nvim-treesitter/playground',
{
'nvim-telescope/telescope-fzf-native.nvim',
build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build'
},
'theprimeagen/harpoon',
'mbbill/undotree',
'tpope/vim-fugitive',
{
'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-buffer',
'hrsh7th/cmp-path',
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-nvim-lua',
'L3MON4D3/LuaSnip',
}
},
-- Lua
{
"folke/zen-mode.nvim",
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
},
{
"ray-x/go.nvim",
dependencies = { -- optional packages
"ray-x/guihua.lua",
"neovim/nvim-lspconfig",
"nvim-treesitter/nvim-treesitter",
},
config = function()
require("go").setup()
end,
event = {"CmdlineEnter"},
ft = {"go", 'gomod'},
build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries
}
})