2023-02-17 16:31:57 -05:00
|
|
|
-- See `:help mapleader`
|
|
|
|
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
|
|
|
|
vim.g.mapleader = ' '
|
|
|
|
vim.g.maplocalleader = ' '
|
|
|
|
|
2023-11-07 11:27:14 +01:00
|
|
|
-- [[ Install `lazy.nvim` plugin manager ]]
|
2023-02-17 16:31:57 -05:00
|
|
|
-- `: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,
|
|
|
|
}
|
2022-06-23 23:35:53 -04:00
|
|
|
end
|
2023-02-17 16:31:57 -05:00
|
|
|
vim.opt.rtp:prepend(lazypath)
|
2022-06-23 23:35:53 -04:00
|
|
|
|
2024-01-09 16:53:14 +05:30
|
|
|
-- Load settings
|
|
|
|
require('kickstart.settings')
|
|
|
|
require('kickstart.keymaps')
|
|
|
|
require('kickstart.yank-highlight')
|
2022-11-21 06:47:24 -06:00
|
|
|
|
2024-01-09 16:53:14 +05:30
|
|
|
-- Load plugins
|
|
|
|
require('lazy').setup({
|
2024-01-08 18:09:07 +05:30
|
|
|
|
|
|
|
{ import = 'kickstart.plugins' },
|
2023-12-10 13:29:45 +05:30
|
|
|
{ import = 'custom.plugins' },
|
2023-02-17 16:31:57 -05:00
|
|
|
}, {})
|
2022-06-23 23:35:53 -04:00
|
|
|
|
|
|
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
|
|
|
-- vim: ts=2 sts=2 sw=2 et
|