From aa6ba297722b20fd47f713d1885f7902157ddd36 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 7 Jan 2023 11:44:33 +0100 Subject: [PATCH] feat(init)!: disable init.lua and show a message on how to use LazyVim --- README.md | 39 +++++-------------------------------- init.lua | 15 +++++++++++++- lua/lazyvim/config/lazy.lua | 34 -------------------------------- 3 files changed, 19 insertions(+), 69 deletions(-) delete mode 100644 lua/lazyvim/config/lazy.lua diff --git a/README.md b/README.md index a9bcc078..5041718f 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,13 @@ # LazyVim -A starter template for Neovim using [lazy.nvim](https://github.com/folke/lazy.nvim) +Basic IDE for lazy Neovim users using [lazy.nvim](https://github.com/folke/lazy.nvim) ![image](https://user-images.githubusercontent.com/292349/210136312-c211f781-6d51-46b0-a265-6098bdbb364d.png) +## 🚀 Getting Started + +You can find a starter template for **LazyVim** [here](https://github.com/LazyVim/starter) + ## ✅ Todo - [ ] documentation @@ -11,39 +15,6 @@ A starter template for Neovim using [lazy.nvim](https://github.com/folke/lazy.nv - [x] list all plugins in readme - [ ] test all-the-things -## File Structure - -
-~/.config/nvim
-├── lua
-│   └── lazyvim
-│       ├── config
-│       │   ├── autocmds.lua
-│       │   ├── keymaps.lua
-│       │   ├── lazy.lua
-│       │   ├── options.lua
-│       │   └── settings.lua
-│       ├── plugins
-│       │   ├── lsp
-│       │   │   ├── format.lua
-│       │   │   ├── init.lua
-│       │   │   ├── keymaps.lua
-│       │   │   └── servers.lua
-│       │   ├── coding.lua
-│       │   ├── colorscheme.lua
-│       │   ├── config.lua
-│       │   ├── editor.lua
-│       │   ├── treesitter.lua
-│       │   ├── ui.lua
-│       │   └── util.lua
-│       └── util.lua
-├── init.lua
-├── lazy-lock.json
-├── LICENSE
-├── README.md
-└── stylua.toml
-
- ## Plugins diff --git a/init.lua b/init.lua index d416a891..2df10400 100644 --- a/init.lua +++ b/init.lua @@ -1 +1,14 @@ -require("lazyvim.config.lazy") +vim.api.nvim_echo({ + { + "Do not use this repository directly\n", + "ErrorMsg", + }, + { + "Please check the docs on how to get started with LazyVim\n", + "WarningMsg", + }, + { "Press any key to exit", "MoreMsg" }, +}, true, {}) + +vim.fn.getchar() +vim.cmd([[quit]]) diff --git a/lua/lazyvim/config/lazy.lua b/lua/lazyvim/config/lazy.lua deleted file mode 100644 index 6e46b6eb..00000000 --- a/lua/lazyvim/config/lazy.lua +++ /dev/null @@ -1,34 +0,0 @@ -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", - lazypath, - }) -end -vim.opt.rtp:prepend(vim.env.LAZY or lazypath) - -require("lazy").setup({ - spec = "lazyvim.plugins", - defaults = { lazy = true, version = "*" }, - install = { colorscheme = { "tokyonight", "habamax" } }, - checker = { enabled = true }, - performance = { - rtp = { - disabled_plugins = { - "gzip", - "matchit", - "matchparen", - "netrwPlugin", - "tarPlugin", - "tohtml", - "tutor", - "zipPlugin", - }, - }, - }, -}) -vim.keymap.set("n", "l", ":Lazy")