94 lines
2.4 KiB
Lua
94 lines
2.4 KiB
Lua
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)
|
|
|
|
local plugins = {
|
|
"williamboman/mason.nvim",
|
|
"williamboman/mason-lspconfig.nvim",
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
dependencies = { 'hrsh7th/cmp-nvim-lsp' }
|
|
},
|
|
{
|
|
'projekt0n/github-nvim-theme',
|
|
name = 'github-theme',
|
|
lazy = false, -- make sure we load this during startup if it is your main colorscheme
|
|
priority = 1000, -- make sure to load this before all the other start plugins
|
|
config = function()
|
|
require('github-theme').setup({
|
|
-- ...
|
|
})
|
|
|
|
vim.cmd('colorscheme github_light_colorblind')
|
|
-- vim.cmd('colorscheme github_light')
|
|
-- vim.cmd('colorscheme github_dark_colorblind')
|
|
-- vim.cmd('colorscheme github_dark')
|
|
end,
|
|
},
|
|
{
|
|
"nvim-telescope/telescope-file-browser.nvim",
|
|
dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" }
|
|
},
|
|
{
|
|
'hrsh7th/nvim-cmp', -- Auto-completion plugin
|
|
dependencies = {
|
|
'hrsh7th/cmp-nvim-lsp', -- LSP source for nvim-cmp
|
|
'hrsh7th/cmp-buffer', -- Buffer source for nvim-cmp
|
|
'hrsh7th/cmp-path', -- Path source for nvim-cmp
|
|
'L3MON4D3/LuaSnip',
|
|
},
|
|
},
|
|
{
|
|
"folke/which-key.nvim",
|
|
event = "VeryLazy",
|
|
opts = {
|
|
-- your configuration comes here
|
|
-- or leave it empty to use the default settings
|
|
-- refer to the configuration section below
|
|
},
|
|
keys = {
|
|
{
|
|
"<leader>?",
|
|
function()
|
|
require("which-key").show({ global = false })
|
|
end,
|
|
desc = "Buffer Local Keymaps (which-key)",
|
|
},
|
|
},
|
|
},
|
|
-- GitSigns
|
|
{
|
|
(not IsYandex) and "lewis6991/gitsigns.nvim" or nil,
|
|
dir = (IsYandex) and "~/arcadia/contrib/tier1/gitsigns.arc.nvim" or nil,
|
|
},
|
|
{
|
|
"hedyhli/outline.nvim",
|
|
lazy = true,
|
|
cmd = { "Outline", "OutlineOpen" },
|
|
keys = { -- Example mapping to toggle outline
|
|
{ "<leader>o", "<cmd>Outline<CR>", desc = "Toggle outline" },
|
|
},
|
|
opts = {
|
|
outline_window = {
|
|
position = "left",
|
|
}
|
|
-- Your setup opts here
|
|
},
|
|
},
|
|
}
|
|
|
|
require("lazy").setup(plugins)
|
|
|
|
require("plugins/telescope")
|
|
require("plugins/completions")
|
|
require("plugins/gitsigns")
|