-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
35 lines (28 loc) · 1.07 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
-- init.lua
-- This is the entry point of the configuration.
--
-- Set leader and localleader
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- expect a nerd font to be installed
vim.g.have_nerd_font = true
-- Disable some buildin plugins
-- vim.g.loaded_netrw = 1
-- vim.g.loaded_netrwPlugin = 1
if vim.g.vscode then
return
end
-- Install `lazy.nvim` plugin manager
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
vim.fn.system({ 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath })
end
-- Add the plugin to the runtimepath
---@diagnostic disable-next-line: undefined-field
vim.opt.rtp:prepend(lazypath)
-- Set up lazy and load the plugins from ./lua/plugins/...
-- Config for plugins might live in ./lua/rv/config/...
-- for easy reloading of the configuration (source %)
require('lazy').setup({ import = 'rv.plugins' }, { change_detection = { notify = false } })