3 files changed,
22 insertions(+),
0 deletions(-)
Author:
Smirnov Oleksandr
ss2316544@gmail.com
Committed at:
2022-10-14 22:27:34 +0300
Parent:
fe09808
jump to
| A | lua/configs/illuminate.lua |
| M | lua/core/options.lua |
| M | lua/plugins.lua |
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",