Initial commit: Neovim config with Fennel via nfnl
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
-- Set leader keys before lazy loads
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or 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(lazypath)
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
{ import = "bootstrap" },
|
||||
{ import = "plugins" },
|
||||
})
|
||||
|
||||
-- Load Fennel config (compiled from fnl/config/init.fnl)
|
||||
pcall(require, "config.init")
|
||||
Reference in New Issue
Block a user