Skip to content

Commit

Permalink
feat!: Trouble now requires Neovim >= 0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Feb 16, 2023
1 parent 949199a commit ef93259
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ A pretty list for showing diagnostics, references, telescope results, quickfix a

## ⚡️ Requirements

- Neovim >= 0.5.0
- Neovim >= 0.7.2
- Properly configured Neovim LSP client
- [nvim-web-devicons](https://github.com/nvim-tree/nvim-web-devicons) is optional to enable file icons
- a theme with properly configured highlight groups for Neovim Diagnostics
Expand Down
4 changes: 4 additions & 0 deletions lua/trouble/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ local function is_open()
end

function Trouble.setup(options)
if vim.fn.has("nvim-0.7.2") == 1 then
util.error("Trouble needs Neovim >= 0.7.2")
return
end
config.setup(options)
util.fix_mode(config.options)
colors.setup()
Expand Down

0 comments on commit ef93259

Please sign in to comment.