feat(init)!: disable init.lua and show a message on how to use LazyVim

This commit is contained in:
Folke Lemaitre 2023-01-07 11:44:33 +01:00
parent e369a25ba3
commit aa6ba29772
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 19 additions and 69 deletions

View file

@ -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
<pre>
~/.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
</pre>
<!-- plugins:start -->
## Plugins

View file

@ -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]])

View file

@ -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", "<leader>l", "<cmd>:Lazy<cr>")