feat: check OS and disable tabnine on linux aarch64
This commit is contained in:
parent
d09205f6e6
commit
8cca88e4e2
4 changed files with 70 additions and 32 deletions
|
|
@ -1,5 +1,18 @@
|
|||
local uname = vim.loop.os_uname()
|
||||
local sysname = uname.sysname
|
||||
local machine = uname.machine
|
||||
|
||||
local enableTabnine = true
|
||||
|
||||
-- Check if the system is Linux and the machine is aarch64
|
||||
if sysname == "Linux" and machine == "aarch64" then
|
||||
-- Disable cmp-tabnine plugin
|
||||
enableTabnine = false
|
||||
end
|
||||
|
||||
return {
|
||||
'codota/tabnine-nvim',
|
||||
enabled = enableTabnine,
|
||||
build = './dl_binaries.sh',
|
||||
config = function()
|
||||
require('tabnine').setup {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue