nvim/init.lua

31 lines
826 B
Lua
Raw Normal View History

2023-02-19 23:01:47 +01:00
-- Set <space> as the leader key
-- WARN: Must happen before plugins are required (otherwise wrong leader will be used)
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- Install package manager
-- https://github.com/folke/lazy.nvim
-- `:help lazy.nvim.txt` for more info
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', -- latest stable release
lazypath,
}
end
vim.opt.rtp:prepend(lazypath)
require('lazy').setup({
{ import = 'options' },
{ import = 'keymaps' },
{ import = 'plugins' },
2023-02-19 23:30:17 +01:00
{ import = 'autocmd' },
2023-02-19 23:01:47 +01:00
}, {})
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et