45 lines
1.0 KiB
Lua
Executable File
45 lines
1.0 KiB
Lua
Executable File
-- NOTE: 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
|
|
-- Check Lua documentation 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)
|
|
|
|
local opts = {
|
|
git = { log = { '--since=3 days ago' } },
|
|
ui = { custom_keys = { false } },
|
|
checker = { enabled = false },
|
|
colorscheme = "monokai",
|
|
}
|
|
|
|
require('lazy').setup({
|
|
-- Git related plugins
|
|
'tpope/vim-fugitive',
|
|
'tpope/vim-rhubarb',
|
|
|
|
-- Detect tabstop and shiftwidth automatically
|
|
'tpope/vim-sleuth',
|
|
{
|
|
import = 'custom.plugins',
|
|
exclude = 'custom.plugins.mason',
|
|
},
|
|
}, opts)
|
|
|
|
require('config.options')
|
|
require('config.mappings')
|
|
require('config.utils')
|
|
require('config.themes')
|