Skip to content

Commit

Permalink
fix: set window options locally (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis6991 committed May 19, 2023
1 parent d56bfc0 commit a5649c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/trouble/view.lua
Expand Up @@ -78,9 +78,9 @@ end

function View:set_option(name, value, win)
if win then
return vim.api.nvim_win_set_option(self.win, name, value)
return vim.api.nvim_set_option_value(name, value, { win = self.win, scope = 'local' })
else
return vim.api.nvim_buf_set_option(self.buf, name, value)
return vim.api.nvim_set_option_value(name, value, { buf = self.buf })
end
end

Expand Down

0 comments on commit a5649c9

Please sign in to comment.