Nvim-cmp doesn't seem to take custom lsp's as inputs?

I was able to get my jai lsp running with this code

    -- for some reason this works
    vim.api.nvim_create_autocmd('BufWritePre', {
    	desc = 'launch jai lsp',
    	callback = function (opts)
    		if vim.bo[opts.buf].filetype == 'jai' then
    				name = "jai",
    				cmd = { "jails" },
    				root_dir = vim.fn.getcwd(), -- Use PWD as project root dir.
my checkhealth:

    vim.lsp: require("vim.lsp.health").check()
    - LSP log level : WARN
    - Log path: C:\Users\USER\AppData\Local\nvim-data\lsp.log
    - Log size: 3 KB
    vim.lsp: Active Clients ~
    - jai (id=1, root_dir=C:\Users\USER\Desktop\JRenderer)

when I go into a jai file it still only recognizes buffer suggestions, how would I remedy this?