From 8fe1d2231fbd242b949eafafe70a79ff9de59c49 Mon Sep 17 00:00:00 2001 From: pegasust Date: Thu, 3 Nov 2022 08:30:44 -0700 Subject: [PATCH] my nvim doesnt support default_capabilities yet --- neovim/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neovim/init.lua b/neovim/init.lua index a47cd0a..45310f0 100644 --- a/neovim/init.lua +++ b/neovim/init.lua @@ -277,7 +277,7 @@ end, { desc = '[Z]ettelkasten [G]rep' }) -- treesitter require('nvim-treesitter.configs').setup { - yati = { enable = true }, + yati = { enable = true, default_lazy = true }, ensure_installed = { 'tsx', 'toml', 'lua', 'typescript', 'rust', 'go', 'yaml', 'json', 'php', 'css', 'python', 'prisma', 'html', "dockerfile", "c", "cpp", "hcl", "svelte", "astro", @@ -414,7 +414,7 @@ local on_attach = function(_client, bufnr) end -- nvim-cmp supports additional completion capabilities -local capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protocol.make_client_capabilities()) +local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()) -- local tabnine = require('cmp_tabnine.config') -- tabnine.setup({ -- max_lines = 1000,