reactive.nvim
reactive.nvim copied to clipboard
Telescope picker opens files in insert mode when using reactive.nvim #17
Error Description
When using Telescope together with reactive.nvim
plugin, opening files from the picker immediately enters insert mode.
Potentially Related Issues
- https://github.com/nvim-telescope/telescope.nvim/issues/2027
- https://github.com/nvim-telescope/telescope.nvim/issues/2501
- https://github.com/nvim-telescope/telescope.nvim/issues/2785
- https://github.com/nvim-telescope/telescope.nvim/issues/2766
My reactive config
return {
{ 'rasulomaroff/reactive.nvim',
config = function()
local reactive = require'reactive'
reactive.add_preset{
name = 'default',
init = function()
-- making our cursor to use `MyCursor` highlight group
vim.opt.guicursor:append('a:MyCursor')
vim.opt.cursorline = true
-- Configure colors of cursorline and colorcolumn
vim.cmd[[
hi! ColorColumn guifg=Red guibg='#380000'
hi! CursorLine guibg=#021020
hi! CursorLineNr gui=bold
]]
end,
lazy = false,
priority = 100,
modes = {
n = {
winhl = {
-- we use `winhl` because we want to highlight CursorLine only in a current window, not in all of them
-- if you want to change global highlights, use the `hl` field instead.
CursorLine = { bg = '#102947' },
CursorLineNr = { fg = '#0b1d33', bg = '#98c379' },
},
},
no = {
-- You can also specify winhl and hl that will be applied with every operator
winhl = {},
hl = {},
operators = {
d = {
winhl = {
CursorLine = { bg = '#450a0a' },
},
hl = {
MyCursor = { bg = '#fca5a5' },
},
},
y = {
winhl = {
CursorLine = { bg = '#422006' },
},
hl = {
MyCursor = { bg = '#fdba74' },
}
}
}
},
i = {
winhl = {
CursorLine = { bg = '#0b1d33' },
CursorLineNr = { fg = '#0b1d33', bg = '#61afef' },
},
hl = {
MyCursor = { bg = '#ff6b6b' },
},
},
[{ 'v', 'V', '\x16' }] = {
winhl = {
CursorLineNr = { fg = '#0b1d33', bg = '#c678dd' },
},
},
},
}
end,
}
}