You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require'cmp'.setup {
sources= {
{ name='nvim_lsp' }
}
}
localcustom_attach=function(client, bufnr)
-- this code gets executed when a language server is attached to a buffer-- you can add your keybindings and commands here.end-- The nvim-cmp almost supports LSP's capabilities so You should advertise it to LSP servers..localcapabilities=vim.lsp.protocol.make_client_capabilities()
capabilities=require('cmp_nvim_lsp').update_capabilities(capabilities)
localcapabilities=require('cmp_nvim_lsp').update_capabilities(
vim.lsp.protocol.make_client_capabilities()
)
vim.cmd[[packadd packer.nvim]]require('packer').startup(function(use)
use'wbthomason/packer.nvim'use'neovim/nvim-lspconfig'end)
require'lspconfig'.pyright.setup {
on_attach=custom_attach,
capabilities=capabilities
}
require'lspconfig'.pyright.setup {
on_attach=custom_attach,
capabilities=capabilities
}
require'lspconfig'.rust_analyzer.setup {
on_attach=custom_attach,
capabilities=capabilities
}
it's using lspconfig. I can see the lsp autocompletion options but I'm not able to cycle through or select them. Hitting tab inserts a space character and ctrl-n or ctrl-p opens the vim autocomplete.
The text was updated successfully, but these errors were encountered:
Hey mate, if you follow the example mappings that are provided in the nvim-cmp wiki, you should be able to find the key mappings that you need! Here's a link:
I have this config:
it's using lspconfig. I can see the lsp autocompletion options but I'm not able to cycle through or select them. Hitting tab inserts a space character and ctrl-n or ctrl-p opens the vim autocomplete.
The text was updated successfully, but these errors were encountered: