config(nvim): disable nvim_cmp snippet

See https://github.com/hrsh7th/nvim-cmp/discussions/759
main
sudo pacman -Syu 2024-06-25 15:10:37 +07:00
parent 020d40a731
commit cad4d80c82
1 changed files with 4 additions and 0 deletions

View File

@ -455,7 +455,11 @@ require("lazy").setup({
},
config = function()
local lspconfig = require("lspconfig")
-- https://github.com/hrsh7th/cmp-nvim-lsp
-- https://github.com/hrsh7th/nvim-cmp/discussions/759
local capabilities = require("cmp_nvim_lsp").default_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = false
-- Go
-- https://github.com/golang/tools/blob/master/gopls/doc/vim.md