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 fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then 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]] vim.cmd [[packadd packer.nvim]]
end end
-- }} -- }}
@ -92,6 +92,20 @@ return require('packer').startup({function()
use { -- lumen: make vim respect the system light/dark theme setting (linux + macos) use { -- lumen: make vim respect the system light/dark theme setting (linux + macos)
'vimpostor/vim-lumen', '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 -- IDE features
---- LSP ---- LSP
@ -180,7 +194,8 @@ return require('packer').startup({function()
} }
use { -- null-ls: Support for lots of programming tools, but through nvim lsp use { -- null-ls: Support for lots of programming tools, but through nvim lsp
'jose-elias-alvarez/null-ls.nvim', 'jose-elias-alvarez/null-ls.nvim',
requires = { 'nvim-lua/plenary.nvim' }, disable = true,
-- requires = { 'nvim-lua/plenary.nvim' },
config = function() config = function()
local null_ls = require("null-ls") local null_ls = require("null-ls")
require("null-ls").setup({ require("null-ls").setup({
@ -448,9 +463,6 @@ return require('packer').startup({function()
} }
end 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 use { -- filetype.nvim: detect filetype a lot faster than stock neovim
'nathom/filetype.nvim', 'nathom/filetype.nvim',
} }
@ -550,7 +562,7 @@ return require('packer').startup({function()
} }
-- Bootstrap packer if needed { -- Bootstrap packer if needed {
if (packer_bootstrap) then if (Packer_bootstrap) then
print('Please wait for packer to install plugins') print('Please wait for packer to install plugins')
require('packer').sync() require('packer').sync()
end end