diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..e6c4e56 --- /dev/null +++ b/init.lua @@ -0,0 +1,35 @@ +-- Chechs for instal of lazy.nvim (plugin manager) in not found installs it -- + +local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +if not (vim.uv or 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) + +-- Configuration of global var -- + +local plugins = { + { "catppuccin/nvim", name = "catppuccin", priority = 1000 }, -- colour scheme -- + + {'nvim-telescope/telescope.nvim', tag = '0.1.6', -- fuzzy finder (telescope) -- + dependencies = { 'nvim-lua/plenary.nvim' }} + +} +local opts = {} + + +-- Runs lazy.nvim (plugin manager) -- + +require("lazy").setup(plugins, opts) + +require("catppuccin").setup(plugins, opts) +vim.cmd.colorscheme "catppuccin" + +