Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
feat: add trouble for listing diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
nexxeln committed Oct 2, 2022
1 parent eb463d1 commit 2511f1e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
7 changes: 7 additions & 0 deletions after/plugin/trouble.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
local present, trouble = pcall(require, "trouble")

if not present then
return
end

trouble.setup({})
11 changes: 7 additions & 4 deletions lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ return require("packer").startup({
requires = { "kyazdani42/nvim-web-devicons", opt = true },
})

-- snippets
use("L3MON4D3/LuaSnip")
use("rafamadriz/friendly-snippets")

-- lsp
use("neovim/nvim-lspconfig")

Expand All @@ -118,6 +122,9 @@ return require("packer").startup({
commit = "76d0573fc159839a9c4e62a0ac4f1046845cdd50",
})

-- diagnostics list
use("folke/trouble.nvim")

-- autocompletion
use("hrsh7th/nvim-cmp")
use("hrsh7th/cmp-buffer")
Expand All @@ -126,10 +133,6 @@ return require("packer").startup({
use("hrsh7th/cmp-path")
use("saadparwaiz1/cmp_luasnip")

-- snippets
use("L3MON4D3/LuaSnip")
use("rafamadriz/friendly-snippets")

if packer_bootstrap then
require("packer").sync()
end
Expand Down
5 changes: 5 additions & 0 deletions plugin/packer_compiled.lua
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ _G.packer_plugins = {
loaded = true,
path = "/home/nxl/.local/share/nvim/site/pack/packer/start/telescope.nvim",
url = "https://github.com/nvim-telescope/telescope.nvim"
},
["trouble.nvim"] = {
loaded = true,
path = "/home/nxl/.local/share/nvim/site/pack/packer/start/trouble.nvim",
url = "https://github.com/folke/trouble.nvim"
}
}

Expand Down

0 comments on commit 2511f1e

Please sign in to comment.