setup lazy.nvim
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/lazy-lock.json
|
||||
28
init.lua
28
init.lua
@@ -0,0 +1,28 @@
|
||||
-- config
|
||||
|
||||
vim.opt.guicursor = ""
|
||||
vim.opt.relativenumber = false
|
||||
vim.opt.shiftwidth = 4
|
||||
|
||||
local plugins = {
|
||||
require("plugins.catppuccin")
|
||||
}
|
||||
|
||||
-- lazy.vim
|
||||
|
||||
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=v11.17.1",
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("lazy").setup(plugins)
|
||||
|
||||
13
lua/plugins/catppuccin.lua
Normal file
13
lua/plugins/catppuccin.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
return {
|
||||
"catppuccin/nvim",
|
||||
tag = "v1.11.0",
|
||||
name = "catppuccin",
|
||||
config = function()
|
||||
require("catppuccin").setup({
|
||||
flavour = "mocha",
|
||||
transparant_background = true,
|
||||
show_end_of_buffer = true
|
||||
})
|
||||
vim.cmd("colorscheme catppuccin")
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user