mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-26 10:48:34 +02:00
feat: neovim
This commit is contained in:
30
home/base/server/neovim/init.lua
Normal file
30
home/base/server/neovim/init.lua
Normal 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)
|
||||
Reference in New Issue
Block a user