2022-12-23 09:15:39 +00:00
|
|
|
-- Bootstrap
|
|
|
|
local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'
|
|
|
|
local is_bootstrap = false
|
|
|
|
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
|
|
|
|
is_bootstrap = true
|
|
|
|
vim.fn.system { 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path }
|
|
|
|
vim.cmd [[packadd packer.nvim]]
|
|
|
|
end
|
|
|
|
|
|
|
|
require('plugins.packer')
|
|
|
|
|
|
|
|
|
|
|
|
-- When we are bootstrapping a configuration, it doesn't
|
|
|
|
-- make sense to execute the rest of the init.lua.
|
|
|
|
--
|
|
|
|
-- You'll need to restart nvim, and then it will work.
|
|
|
|
if is_bootstrap then
|
|
|
|
print '=================================='
|
|
|
|
print ' Plugins are being installed'
|
|
|
|
print ' Wait until Packer completes,'
|
|
|
|
print ' then restart nvim'
|
|
|
|
print '=================================='
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
-- General Configuration
|
2022-12-20 17:21:09 +00:00
|
|
|
vim.opt.number = true
|
|
|
|
vim.opt.relativenumber = true
|
|
|
|
vim.opt.ignorecase = true
|
|
|
|
vim.opt.tabstop = 2
|
|
|
|
vim.opt.shiftwidth = 2
|
|
|
|
vim.opt.expandtab = true
|
|
|
|
|
2022-12-23 09:15:39 +00:00
|
|
|
vim.cmd('colorscheme base16-tomorrow-night-eighties')
|
2022-12-20 17:21:09 +00:00
|
|
|
|
2022-12-23 09:15:39 +00:00
|
|
|
require('keybindings')
|