nvim: add indentline and fix for packer

This commit is contained in:
PowerUser64 2021-12-03 01:05:26 -08:00
parent 942c9bb3d3
commit 9c5a7ad293

View file

@ -14,17 +14,18 @@ return require('packer').startup({function()
-- impatient (needs to go early)
use { -- lewis6991: impatient: Make nvim load faster by caching them
'lewis6991/impatient.nvim',
-- config = function()
-- require('impatient')
-- end,
config = function()
require('impatient')
end,
}
-- Packer
use { -- packer
'wbthomason/packer.nvim',
config = function() -- Map :PS to :PackerSync
config = function()
-- Map :PS to :PackerSync
vim.cmd 'command! PS PackerSync'
require('packer_compiled')
-- require('packer_compiled')
end
}
@ -188,6 +189,16 @@ return require('packer').startup({function()
-- use { -- lightspeed: Jump around in files quickly
-- 'ggandor/lightspeed.nvim',
-- }
use { -- indentline: Line indent indicators
'Yggdroot/indentLine',
config = function()
vim.cmd [[
let g:indentLine_char = ''
let g:indentLine_conceallevel = 1
let g:indentLine_fileTypeExclude = ['markdown', 'help']
]]
end
}
use { -- targets.vim: fix ci' and other things to work right
'wellle/targets.vim',
}
@ -258,7 +269,7 @@ return require('packer').startup({function()
end,
config = {
display = { open_fn = require('packer.util').float },
-- Move to lua dir so impatient.nvim can cache it
-- Move to lua dir so impatient.nvim can cache it
compile_path = vim.fn.stdpath('config')..'/lua/packer_compiled.lua',
}})