feat(plugins): Remove unused plugin
This commit is contained in:
parent
263b0d1b53
commit
e46d38ea56
3 changed files with 1 additions and 28 deletions
|
@ -56,16 +56,4 @@ function M.init()
|
||||||
do_legacy_diagnostic_signs()
|
do_legacy_diagnostic_signs()
|
||||||
end
|
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
|
return M
|
||||||
|
|
|
@ -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_prev({ float = { border = "single" }})<CR>', opts)
|
||||||
map('n', ']g', '<cmd>lua vim.diagnostic.goto_next({ 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', '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', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
|
||||||
map('n', '<space>ga', '<cmd>lua require("telescope.builtin").lsp_code_actions()<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)
|
map('v', '<space>ga', '<cmd>lua require("telescope.builtin").lsp_range_code_actions()<CR>', opts)
|
||||||
|
|
|
@ -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
|
-- git commands
|
||||||
use({
|
use({
|
||||||
'tpope/vim-fugitive',
|
'tpope/vim-fugitive',
|
||||||
|
|
Loading…
Add table
Reference in a new issue