Merge 'upstream' nvim-lspconfig cmp-nvim-lsp, treesitter prefer_git

Add explicit dependency of nvim-lspconfig on cmp-nvim-lsp
Remove treesitter prefer_git option
This commit is contained in:
Damjan 9000 2024-07-31 21:09:37 +02:00
commit 198460c421
2 changed files with 3 additions and 2 deletions

View File

@ -25,6 +25,9 @@ return {
-- Useful status updates for LSP.
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
{ 'j-hui/fidget.nvim', opts = {} },
-- Allows extra capabilities provided by nvim-cmp
'hrsh7th/cmp-nvim-lsp',
},
config = function()
-- Brief aside: **What is LSP?**

View File

@ -18,8 +18,6 @@ return {
config = function(_, opts)
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
-- Prefer git instead of curl in order to improve connectivity in some environments
require('nvim-treesitter.install').prefer_git = true
---@diagnostic disable-next-line: missing-fields
require('nvim-treesitter.configs').setup(opts)