fully working autocomplete, and working tab button?

This commit is contained in:
Anish L 2022-02-26 14:09:11 +10:00
parent 11845721d8
commit aa825a1d3b

View file

@ -314,8 +314,6 @@ cmp.setup {
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif has_words_before() then
cmp.complete()
else
fallback()
end
@ -343,13 +341,16 @@ tabnine:setup({max_lines = 1000, max_num_results = 20, sort = true})
-- Setup lspconfig.
local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
-- require'lspconfig'clojure-lsp.setup {}
--require'lspconfig'rnix.setup {}
-- require'lspconfig'pylsp.setup {}
-- require'lspconfig'terraform_lsp.setup {}
require('lspconfig').clojure-lsp.setup {}
require('lspconfig').rnix.setup {}
require('lspconfig').pylsp.setup {}
require('lspconfig').terraform_lsp.setup {}
-- Bufferline
require('bufferline').setup {}
-- autopairs
require('nvim-autopairs').setup{}
EOF
'';
};