nvim-treesitter / nvim-treesitter-refactor

Refactor module for nvim-treesitter
Apache License 2.0
407 stars 25 forks source link

Background color #16

Closed hugoeustaquio closed 3 years ago

hugoeustaquio commented 3 years ago

I wold like to choose the background color of hightlighted lines. My current init.vim is like:

require'nvim-treesitter.configs'.setup {
  refactor = {
    highlight_current_scope = {
      enable = true
    },
  },
}

My suggestion is to have a property named "color", as following:

require'nvim-treesitter.configs'.setup {
  refactor = {
    highlight_current_scope = {
      enable = true,
      color = gray
    },
  },
}

Thanks for the good work, I hope you guys like this feature request.

gegoune commented 3 years ago

I think TSCurrentScope is being used to highlight current scope. You can change/define that highlight group to your liking.

hugoeustaquio commented 3 years ago

That's right! I achieved what I wanted with 'hi! TSCurrentScope guibg=#022631'. Thanks!