feat(plugins): Remove unused plugin

This commit is contained in:
Matt Leong 2021-10-21 19:17:02 -07:00
parent 263b0d1b53
commit e46d38ea56
3 changed files with 1 additions and 28 deletions

View file

@ -56,16 +56,4 @@ function M.init()
do_legacy_diagnostic_signs()
end
function M.trouble()
require('trouble').setup({
mode = 'lsp_document_diagnostics', -- "lsp_workspace_diagnostics", "lsp_document_diagnostics", "quickfix", "lsp_references", "loclist"
signs = {
error = icons.error .. ' ',
warning = icons.warn .. ' ',
hint = icons.hint .. ' ',
information = icons.info .. ' ',
},
})
end
return M

View file

@ -15,7 +15,7 @@ map('n', 'gn', '<cmd>lua require("cosmic.core.theme.ui").rename()<CR>', opts)
map('n', '[g', '<cmd>lua vim.diagnostic.goto_prev({ float = { border = "single" }})<CR>', opts)
map('n', ']g', '<cmd>lua vim.diagnostic.goto_next({ float = { border = "single" }})<CR>', opts)
map('n', 'ge', '<cmd>lua vim.diagnostic.open_float(0, { scope = "line", border = "single" })<CR>', opts)
map('n', '<space>ge', ':Telescope lsp_document_diagnostics', opts)
map('n', '<space>ge', ':Telescope lsp_document_diagnostics<CR>', opts)
map('n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
map('n', '<space>ga', '<cmd>lua require("telescope.builtin").lsp_code_actions()<CR>', opts)
map('v', '<space>ga', '<cmd>lua require("telescope.builtin").lsp_range_code_actions()<CR>', opts)

View file

@ -88,21 +88,6 @@ return packer.startup(function()
},
})
-- diagnostics
use({
'folke/trouble.nvim',
opt = true,
config = function()
require('cosmic.lsp.diagnostics').trouble()
end,
cmd = {
'Trouble',
'TroubleClose',
'TroubleToggle',
'TroubleRefresh',
},
})
-- git commands
use({
'tpope/vim-fugitive',