feat: neovim

This commit is contained in:
Ryan Yin
2023-07-10 19:06:59 +08:00
parent b6629a38a1
commit 21b3d4ad37
37 changed files with 2499 additions and 18 deletions

View File

@@ -0,0 +1,30 @@
require("base")
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 lazy_theme
if os.getenv("GTK_THEME") == "Nordic" then
lazy_theme = "nord"
elseif os.getenv("GTK_THEME") == "Catppuccin-Frappe-Pink" then
lazy_theme = "catppuccin-frappe"
else
lazy_theme = "catppuccin-latte"
end
local opts = {
install = {
colorscheme = { lazy_theme },
},
ui = {
size = { width = 1.0, height = 1.0 },
},
}
require("lazy").setup("plugins", opts)