I need help with setup, not sure what I've done wrong #1686
-
I'm trying to follow this tutorial, but it seems the setup process has changed. i'm trying to follow the structured (two file's) approach, and it's confusing me, it alternates between not working, and loading the theme, but claiming to fail in cloning the repository. this is the error i get when loading nvim
this is my -- this file is run on every startup of nvim.
Require("config.lazy") --for lazy loader
vim.cmd("set clipboard+=unnamedplus") this is my config file -- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.rtp:prepend(lazypath)
-- Make sure to setup `mapleader` and `maplocalleader` before
-- loading lazy.nvim so that mappings are correct.
-- This is also a good place to setup other settings (vim.opt)
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
-- Setup lazy.nvim
require("lazy").setup({
spec = {
-- import your plugins
{ import = "plugins" },
--the following are two lua tables meant to install the "catppuccin" theme.
--the first is spelt incorrectly, and sort of works.
--the second is spelt correctly, and doesn't work.
--wtf
{ "catppucin/nvim", name = "catppucin", priority = 1000 }
--{ "catppuccin/nvim", name = "catppuccin", priority = 1000 }
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
install = { colorscheme = { "habamax" } },
-- automatically check for plugin updates
checker = { enabled = true },
}) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
there was also some weird behaviour where it would load the theme, but say it failed to clone the git repo, though it required messing with the plugin string, and i haven't been able to reproduce it. |
Beta Was this translation helpful? Give feedback.
-
There is no |
Beta Was this translation helpful? Give feedback.
-
i just found the starter, and I think i'm going to back this up in a directory somewhere, delete this, and use the starter to be able to find my way around. maybe after that i'll come back to this once i understand a bit more. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
i just found the starter, and I think i'm going to back this up in a directory somewhere, delete this, and use the starter to be able to find my way around. maybe after that i'll come back to this once i understand a bit more.