nvim/init.lua

30 lines
608 B
Lua
Raw Normal View History

2023-04-08 23:47:10 +02:00
vim.loader.enable()
2023-01-01 19:36:00 +01:00
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
2022-12-31 17:43:31 +01:00
if not vim.loop.fs_stat(lazypath) then
2023-01-23 21:51:04 +01:00
vim.fn.system {
'git',
'clone',
'--filter=blob:none',
'--single-branch',
'https://github.com/folke/lazy.nvim.git',
2023-04-09 23:45:24 +02:00
lazypath,
2023-01-23 21:51:04 +01:00
}
2022-12-31 17:43:31 +01:00
end
2023-04-09 23:45:24 +02:00
2022-12-31 17:43:31 +01:00
vim.opt.runtimepath:prepend(lazypath)
2023-04-09 23:45:24 +02:00
2023-01-01 19:36:00 +01:00
vim.api.nvim_create_autocmd('User', {
2023-04-08 23:47:10 +02:00
pattern = 'LazyVimStarted',
2023-01-01 19:36:00 +01:00
callback = function()
2023-06-20 19:00:40 +02:00
require 'feline'
2023-04-09 23:45:24 +02:00
require 'config.mappings'
require 'config.autocmd'
2023-06-19 11:33:42 +02:00
-- require 'noice'
require 'nvim-treesitter'
vim.cmd 'colorscheme neogruber'
2023-01-01 19:36:00 +01:00
end,
})
2022-12-31 17:43:31 +01:00
2023-04-08 23:47:10 +02:00
require 'config.settings'
require 'config.lazy'