From 5c1f01f3a22f2663b6bfadbcee8a65034e731286 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Wed, 24 Aug 2022 04:11:15 -0700 Subject: [PATCH] nvim: move vim-illuminate, add config, and use personal repo --- .config/nvim/lua/blake/plugins.lua | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.config/nvim/lua/blake/plugins.lua b/.config/nvim/lua/blake/plugins.lua index 53875eb..192f5bc 100644 --- a/.config/nvim/lua/blake/plugins.lua +++ b/.config/nvim/lua/blake/plugins.lua @@ -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