-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to install in NvChad? #47
Comments
Never used NvChad. But one issue that comes to mind is that you need to run the install.sh script. |
FWIW. This is how I got TabNine working in NvChad custom/plugins/init.lua
custom/plugins/configs/tabnine.lua
|
Did you add cmp_tabnine to cmp's sources list? |
I believe so, I assume that's why it's available in my first screen shot when I run :CmpStatus 🤔 It almost feels like it gets picked up by cmp but not wired up to the lsp client itself. The one language client that seems to get picked up by my LSP client is:
because if have this config. I'm trying to figure out how to do the same for:
This is my compiled packer file:
Seems to load everything properly? New Error: |
I don't know why you keep bringing up LSP. TabNine does not interface into any LSP, but operates on its own. |
Again, nvim lsp is not connected to cmp. Its the other way around. |
My config for NvChad v2.0 File: {
"tzachar/cmp-tabnine",
lazy = false,
dependencies = "hrsh7th/nvim-cmp",
build = "./install.sh",
config = function()
require("cmp").setup {
sources = {
{ name = 'cmp_tabnine' },
},
}
require('cmp_tabnine.config').setup {
max_lines = 1000,
max_num_results = 20,
sort = true,
run_on_every_keystroke = true,
snippet_placeholder = '..',
show_prediction_strength = false
}
end,
}, |
You should call require('cmp_tabnine.config'):setup |
author of nvchad here. i'd suggest using this as it doesnt load the plugin at startup. {
"hrsh7th/nvim-cmp",
opts = {
sources = {
{ name = "nvim_lsp" },
{ name = "luasnip" },
{ name = "buffer" },
{ name = "nvim_lua" },
{ name = "path" },
{ name = "cmp_tabnine" },
},
},
dependencies = {
{
"tzachar/cmp-tabnine",
build = "./install.sh",
config = function()
local tabnine = require "cmp_tabnine.config"
tabnine:setup {} -- put your options here
end,
},
},
}, |
I can't figure out how to install this on NvChad perhaps someone who has the same problem can help me? This is what I've done:
The text was updated successfully, but these errors were encountered: