cleanup and remove unused plugins
This commit is contained in:
parent
a98c41f65b
commit
c815f1f513
10 changed files with 127 additions and 286 deletions
|
@ -13,7 +13,6 @@ return {
|
|||
"saadparwaiz1/cmp_luasnip",
|
||||
"nvim-telescope/telescope-ui-select.nvim",
|
||||
"nvimtools/none-ls.nvim",
|
||||
"nvimdev/lspsaga.nvim",
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
"jay-babu/mason-null-ls.nvim",
|
||||
|
@ -209,9 +208,6 @@ return {
|
|||
require("telescope").setup {
|
||||
extensions = {
|
||||
["ui-select"] = {
|
||||
-- require("telescope.themes").get_dropdown {
|
||||
-- -- even more opts
|
||||
-- }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -242,64 +238,6 @@ return {
|
|||
ensure_installed = { "clang_format", "shellharden", "shfmt" }
|
||||
})
|
||||
|
||||
|
||||
-- lspsaga (pretty lsp-windows)
|
||||
|
||||
require('lspsaga').setup({
|
||||
symbol_in_winbar = {
|
||||
enable = false,
|
||||
show_file = false
|
||||
},
|
||||
finder = {
|
||||
keys = {
|
||||
toggle_or_open = "<cr>",
|
||||
quit = { '<Esc>', 'q' }
|
||||
}
|
||||
},
|
||||
outline = {
|
||||
win_position = 'right',
|
||||
win_width = 32,
|
||||
auto_preview = true,
|
||||
},
|
||||
lightbulb = {
|
||||
enable = false
|
||||
},
|
||||
ui = {
|
||||
code_action = '',
|
||||
title = true,
|
||||
border = 'rounded',
|
||||
},
|
||||
rename = {
|
||||
in_select = false,
|
||||
keys = {
|
||||
quit = { '<Esc>', 'q' },
|
||||
select = '<Space>'
|
||||
}
|
||||
},
|
||||
hover_doc = {
|
||||
open_cmd = '!firefox'
|
||||
},
|
||||
code_action = {
|
||||
keys = {
|
||||
quit = { '<Esc>', 'q' }
|
||||
},
|
||||
extend_gitsigns = false,
|
||||
},
|
||||
definition = {
|
||||
keys = {
|
||||
quit = { '<Esc>', 'q' },
|
||||
},
|
||||
},
|
||||
diagnostic = {
|
||||
border_follow = true,
|
||||
extend_relatedInformation = true,
|
||||
keys = {
|
||||
quit = { '<Esc>', 'q' },
|
||||
quit_in_show = { '<Esc>', 'q' },
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
-- config --
|
||||
|
||||
vim.diagnostic.config({
|
||||
|
@ -318,29 +256,6 @@ return {
|
|||
},
|
||||
})
|
||||
|
||||
-- keymaps --
|
||||
|
||||
local opts = { noremap = true, silent = true }
|
||||
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts)
|
||||
vim.keymap.set('n', 'K', function() vim.lsp.buf.hover { border = "rounded" } end, opts)
|
||||
vim.keymap.set('n', '<leader>k', function() vim.lsp.buf.hover { border = "rounded" } end, opts)
|
||||
vim.keymap.set('n', '<space>cl', "<cmd>LspInfo<cr>", opts)
|
||||
vim.keymap.set('n', '<space>cd', vim.diagnostic.open_float, opts)
|
||||
vim.keymap.set('n', '[n', vim.diagnostic.goto_prev, opts)
|
||||
vim.keymap.set('n', ']n', vim.diagnostic.goto_next, opts)
|
||||
vim.keymap.set('n', '<space>gr', vim.lsp.buf.references, opts)
|
||||
vim.keymap.set('n', '<space>cf', function() vim.lsp.buf.format { async = true } end, opts)
|
||||
vim.keymap.set('v', '<space>cf', function() vim.lsp.buf.format { async = true } end, opts)
|
||||
vim.keymap.set("n", "<leader>fws", function() vim.lsp.buf.workspace_symbol() end, opts)
|
||||
vim.keymap.set("i", "<C-s>", function() vim.lsp.buf.signature_help { border = "rounded" } end, opts)
|
||||
vim.keymap.set('n', '<C-n>', "<cmd>Lspsaga term_toggle<cr>", opts)
|
||||
vim.keymap.set('t', '<C-n>', "<cmd>Lspsaga term_toggle<cr>", opts)
|
||||
vim.keymap.set('n', '<space>so', '<cmd>Lspsaga outline<cr>', opts)
|
||||
vim.keymap.set('n', '<space>sf', '<cmd>Lspsaga finder<cr>', opts)
|
||||
vim.keymap.set('n', '<space>sd', '<cmd>Lspsaga peek_definition<cr>', opts)
|
||||
vim.keymap.set('n', '<space>cw', "<cmd>Lspsaga rename mode=n<cr>", opts)
|
||||
vim.keymap.set('n', '<space>cA', vim.lsp.buf.code_action, opts)
|
||||
vim.keymap.set('n', '<space>ca', '<cmd>Lspsaga code_action<cr>', opts)
|
||||
end,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue