Questions tagged [plugin-nvim-cmp]

A completion plugin for neovim coded in Lua

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

How to make lua_ls provide completion for luasnip methods?

I am using luasnip in Neovim and I'm having problems getting lua_ls to provide information about the functions. local ls = require("luasnip") local s = ls.snippet Basically, I want when ...
darkfrobozz's user avatar
0 votes
0 answers
307 views

How to map Enter, Ctrl-Enter and Shift-Enter in Neovim (nvim-cmp)?

According to this My Kitty conf map shift+enter send_text all \x1b[13;2u map ctrl+enter send_text all \x1b[13;5u According to this My Tmux conf bind -n S-Enter send-keys Escape "[13;2u" ...
f4T1H21's user avatar
  • 13
0 votes
0 answers
38 views

input with completion in times of lua (nvim-cmp ?)

let user_dir = input('Enter a directory: ', '', 'dir') This is simple not working for me. When I press <tab> instead of completion, I get ^I . I use nvim-cmp. Could it be the reason? Can I use ...
eyal karni's user avatar
  • 1,096
1 vote
1 answer
708 views

jump to definition goes to import statement rather than actual file defintion

Here is my nvim setup: local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()) local lspconfig = require('lspconfig') local servers = { '...
abbood's user avatar
  • 713
0 votes
1 answer
2k views

How to set up LuaSnip in NeoVim w/LSP-Zero?

I'm trying to enable snippets in my auto-completion but they are only working for lua files and nothing else. I ve been messing around with nvim-cmp and luasnip itself and even downloaded friendly ...
Marcello Fitton's user avatar
0 votes
2 answers
218 views

Error: ...cker/start/lsp-zero.nvim/lua/lsp-zero/nvim-cmp-setup.lua:12: attempt to index field 'SelectBehavior' (a nil value)

I'm getting: Error detected while processing /Users/dstromberg/.vim/init.lua: E5113: Error while calling lua chunk: ...cker/start/lsp-zero.nvim/lua/lsp-zero/nvim-cmp-setup.lua:12: attempt to index ...
dstromberg's user avatar
0 votes
2 answers
1k views

How to improve CMP performance?

nvim-cmp + Tailwind LSP lags the crap out of the editor when typing HTML class names. I understand this must be because Tailwind's suggestions come in large quantities. But is there a way to improve ...
Bruno Braga's user avatar
0 votes
2 answers
382 views

nvim: How do I insert a luasnip for BufNewFile "_skel"

I am using nvim-cmp and luasnips and I have a _skel snippet, I would like to create an autocmd to trigger this snippet for New Files: I already have some code: local status_ok, packer = pcall(require, ...
SergioAraujo's user avatar
  • 1,165