rasulomaroff / reactive.nvim

Reactivity. Right in your neovim.
Apache License 2.0
191 stars 1 forks source link

Can you share your config? I am not seeing any cursorline hl changes #17

Closed daUnknownCoder closed 3 months ago

daUnknownCoder commented 3 months ago

So good work on this plugin, its one hell of a productivity booster, but im not able to set it up.

This is my config:

  -- Mode Cursorline
  {
    "rasulomaroff/reactive.nvim",
    event = { "LazyFile" },
    config = function()
      local reactive = require("reactive")
      reactive.setup()
    end,
  },

note that im using this with another plugin:

  -- Cursorline
  {
    "tummetott/reticle.nvim",
    event = { "LazyFile" },
    opts = {
      disable_in_insert = false,
    },
  },

i hope it doesnt affect it coz im not seeing any cursorline highlight changes

rasulomaroff commented 3 months ago

Hi there! If you want to use default configuration, replace your code with:

require('reactive').setup {
  builtin = {
    cursorline = true,
    cursor = true,
    modemsg = true
  }
}

Built-in presets are turned off by default, this is why you have to enable them explicitly.

I'm also not sure what LazyFile event is for. In my case I use it with 'VeryLazy' event.

If you want to use reactive with your own preset instead, then please refer to this part of documentation. Feel free to ask any other questions :)

daUnknownCoder commented 3 months ago

I'm also not sure what LazyFile event is for. In my case I use it with VeryLazy event.

lazyfile event can be called the father of VimEnter ig, coz it loads all plugins when i directly open it into a file like nvim some.file so its good for treesitter and lspconfig stuff, shamelessly stole from LazyVim distro tho 😃

daUnknownCoder commented 3 months ago

Built-in presets are turned off by default, this is why you have to enable them explicitly.

oh thanks that works, ill try making my own preset tho 👍🏻