tarch-configs/configs/nvim/lua/plugins/init.lua
Andrey Zimin 1b1b70daed add nvim
2024-03-10 13:30:59 +03:00

39 lines
1.0 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

local M = {}
M.load = function()
-- офф. загрузка lazy если что см. их доки https://github.com/folke/lazy.nvim
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)
require("lazy").setup(
{
{ import = "plugins.configs" },
{ import = "plugins.configs.lsp" }
},
{
install = {
colorscheme = { "catppuccin" }
},
checker = {
enabled = false, -- проверка обновления
notify = false -- уведомление об обновлении
},
change_detection = {
notify = false -- уведомление если файл изменили
}
}
)
end
return M
-- опробовать
-- https://github.com/aznhe21/actions-preview.nvim