nvim: move vim-illuminate, add config, and use personal repo

This commit is contained in:
PowerUser64 2022-08-24 04:11:15 -07:00
parent 0b203775dd
commit 5c1f01f3a2

View file

@ -3,7 +3,7 @@
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
Packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd [[packadd packer.nvim]]
end
-- }}
@ -92,6 +92,20 @@ return require('packer').startup({function()
use { -- lumen: make vim respect the system light/dark theme setting (linux + macos)
'vimpostor/vim-lumen',
}
use { -- vim-illuminate: highlight other occurrences of the word under cursor
-- 'RRethy/vim-illuminate',
-- commit = '27f6ef135a88d9410a33cf92fc47f5c018df552c',
'PowerUser64/vim-illuminate',
branch = 'wrapscan',
config = function()
require('illuminate').configure({
providers = {
'treesitter',
'regex',
}
})
end
}
-- IDE features
---- LSP
@ -180,7 +194,8 @@ return require('packer').startup({function()
}
use { -- null-ls: Support for lots of programming tools, but through nvim lsp
'jose-elias-alvarez/null-ls.nvim',
requires = { 'nvim-lua/plenary.nvim' },
disable = true,
-- requires = { 'nvim-lua/plenary.nvim' },
config = function()
local null_ls = require("null-ls")
require("null-ls").setup({
@ -448,9 +463,6 @@ return require('packer').startup({function()
}
end
}
use { -- vim-illuminate: highlight other occurrences of the word under cursor
'RRethy/vim-illuminate',
}
use { -- filetype.nvim: detect filetype a lot faster than stock neovim
'nathom/filetype.nvim',
}
@ -550,7 +562,7 @@ return require('packer').startup({function()
}
-- Bootstrap packer if needed {
if (packer_bootstrap) then
if (Packer_bootstrap) then
print('Please wait for packer to install plugins')
require('packer').sync()
end