Update plugins

This commit is contained in:
Alex Yatskov 2022-10-24 22:17:21 -07:00
parent fb7b515cc8
commit bd724f3654
9 changed files with 62 additions and 71 deletions

View File

@ -1,19 +1,13 @@
-- neodev.nvim -- neodev.nvim
local neodev_nvim = require('neodev') local neodev_nvim = require('neodev')
if neodev_nvim then
neodev_nvim.setup({}) neodev_nvim.setup({})
end
-- cmp-nvim-lsp, nvim-lspconfig
local nvim_lspconfig = require('lspconfig')
if nvim_lspconfig then
local capabilities = vim.lsp.protocol.make_client_capabilities()
-- cmp-nvim-lsp
local cmp_nvim_lsp = require('cmp_nvim_lsp') local cmp_nvim_lsp = require('cmp_nvim_lsp')
if cmp_nvim_lsp then local capabilities = cmp_nvim_lsp.default_capabilities({snippetSupport = false})
capabilities = cmp_nvim_lsp.update_capabilities(capabilities, {snippetSupport = false})
end
-- nvim-lspconfig
local nvim_lspconfig = require('lspconfig')
nvim_lspconfig.clangd.setup({capabilities = capabilities}) nvim_lspconfig.clangd.setup({capabilities = capabilities})
nvim_lspconfig.gopls.setup({capabilities = capabilities}) nvim_lspconfig.gopls.setup({capabilities = capabilities})
nvim_lspconfig.jedi_language_server.setup({capabilities = capabilities}) nvim_lspconfig.jedi_language_server.setup({capabilities = capabilities})
@ -49,11 +43,9 @@ if nvim_lspconfig then
vim.keymap.set('n', 'gr', vim.lsp.buf.references) vim.keymap.set('n', 'gr', vim.lsp.buf.references)
vim.opt.omnifunc = 'v:lua.vim.lsp.omnifunc' vim.opt.omnifunc = 'v:lua.vim.lsp.omnifunc'
end
-- nvim-cmp -- nvim-cmp
local nvim_cmp = require('cmp') local nvim_cmp = require('cmp')
if nvim_cmp then
nvim_cmp.setup({ nvim_cmp.setup({
mapping = { mapping = {
['<c-d>'] = nvim_cmp.mapping.scroll_docs(-4), ['<c-d>'] = nvim_cmp.mapping.scroll_docs(-4),
@ -70,4 +62,3 @@ if nvim_cmp then
expand = function(args) vim.fn['vsnip#anonymous'](args.body) end, expand = function(args) vim.fn['vsnip#anonymous'](args.body) end,
}, },
}) })
end

@ -1 +1 @@
Subproject commit affe808a5c56b71630f17aa7c38e15c59fd648a8 Subproject commit 3cf38d9c957e95c397b66f91967758b31be4abe6

@ -1 +1 @@
Subproject commit 0abfa1860f5e095a07c477da940cfcb0d273b700 Subproject commit 1ae05c6c867d9ad44bce811056e861e0d5c531cb

@ -1 +1 @@
Subproject commit dad26d81dfb7393388ec31b6a4b921c4d722a95a Subproject commit 0fbf1c7c71fd65a113b2b83f50c956c15d72e885

@ -1 +1 @@
Subproject commit 0c2cba85fd2fb3202912dfea85f103da2307c3c5 Subproject commit b475883321cb4fed8e932e462d7d85f0693492a1

@ -1 +1 @@
Subproject commit 714ccb7483d0ab90de1b93914f3afad1de8da24a Subproject commit cdb77665bbf23bd2717d424ddf4bf98057c30bb3

@ -1 +1 @@
Subproject commit 35a731bddaf20be0a2a0492cfa489ae6130a4eb6 Subproject commit d8d48b7a8ce12605378fba6391348b99e8a7a4c1

@ -1 +1 @@
Subproject commit 6bffe36862faa601d2de7e54f6e85c1435e832d0 Subproject commit 2fc45dc4bcafb245b613ebd6847a244924735cc6

@ -1 +1 @@
Subproject commit b2caf50a6e3c021c92b236abff70bbb467bce24f Subproject commit 03010115eb8bdda00ce5f845cc2f7025700e33bb