mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2026-01-29 01:13:01 +01:00
nvim: init
This commit is contained in:
parent
2919c8695b
commit
9a319d8bf7
17 changed files with 179 additions and 0 deletions
28
nvim/lua/config/lazy.lua
Normal file
28
nvim/lua/config/lazy.lua
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("config") .. "/lua/lazy"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
-- Submodule should exist, but fail gracefully
|
||||
vim.notify("lazy.nvim submodule not found!", vim.log.levels.ERROR)
|
||||
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" },
|
||||
},
|
||||
-- Configure any other settings here. See the documentation for more details.
|
||||
-- colorscheme that will be used when installing plugins.
|
||||
install = { colorscheme = { "onedark" } },
|
||||
-- automatically check for plugin updates
|
||||
checker = { enabled = true },
|
||||
-- disable luarocks
|
||||
rocks = { enabled = false },
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue