Skip to content

Commit

Permalink
replace deprecated func (hrsh7th/cmp-nvim-lsp#38 (comment))
Browse files Browse the repository at this point in the history
  • Loading branch information
sankantsu committed Jun 4, 2023
1 parent 4947914 commit 20839f3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,8 @@ telescope.setup({

require("mason").setup()
require('mason-lspconfig').setup_handlers({ function(server)
local opt = {
capabilities = require('cmp_nvim_lsp').update_capabilities(
vim.lsp.protocol.make_client_capabilities()
)
}
require('lspconfig')[server].setup(opt)
local capabilities = require("cmp_nvim_lsp").default_capabilities()
require('lspconfig')[server].setup(capabilities)
end })

-- keyboard shortcut
Expand Down

0 comments on commit 20839f3

Please sign in to comment.