all repos

init.lua @ d86e40b03d8e7dec7c258c211515e0a69c114bc7

my nvim config
3 files changed, 22 insertions(+), 0 deletions(-)
feat(plugins): add illuminate
Author: Smirnov Oleksandr ss2316544@gmail.com
Committed at: 2022-10-14 22:27:34 +0300
Parent: fe09808
A lua/configs/illuminate.lua

@@ -0,0 +1,10 @@

+require("illuminate").configure { + providers = { "lsp", "treesitter" }, + filetypes_denylist = { + "NvimTree", + "packer", + "neogitstatus", + "Trouble", + "TelescopePrompt", + }, +}
M lua/core/options.lua

@@ -1,6 +1,12 @@

local o, g = vim.opt, vim.g +local hl = vim.api.nvim_set_hl pcall(vim.cmd.colorscheme, "kanagawa") + +-- higlight +hl(0, "IlluminatedWordRead", { link = "LspReferenceRead" }) +hl(0, "IlluminatedWordText", { link = "LspReferenceText" }) +hl(0, "IlluminatedWordWrite", { link = "LspReferenceWrite" }) -- leader g.mapleader = " "
M lua/plugins.lua

@@ -41,6 +41,12 @@ after = "kanagawa.nvim",

config = u.get.config "statusline", } + use { -- higlight same words under cursor + "RRethy/vim-illuminate", + event = "BufRead", + config = u.get.config "illuminate", + } + use { -- higlight todo, note, fix comments "folke/todo-comments.nvim", event = "BufRead",