mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 00:25:50 +02:00
feat(init)!: disable init.lua and show a message on how to use LazyVim
This commit is contained in:
parent
e369a25ba3
commit
aa6ba29772
3 changed files with 19 additions and 69 deletions
39
README.md
39
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)
|
||||
|
||||

|
||||
|
||||
## 🚀 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
|
||||
|
|
15
init.lua
15
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]])
|
||||
|
|
|
@ -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>")
|
Loading…
Add table
Add a link
Reference in a new issue