it's actually working here lol

This commit is contained in:
Anish L 2022-02-26 13:52:14 +10:00
parent cc77bf697a
commit 11845721d8

View file

@ -1,6 +1,4 @@
{ pkgs, ... }:
let
customPlugins = {
vim-zettel = pkgs.vimUtils.buildVimPlugin {
@ -275,6 +273,7 @@ in
lua <<EOF
-- Setup nvim-cmp.
local cmp = require('cmp')
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
local t = function(str)
return vim.api.nvim_replace_termcodes(str, true, true, true)
end
@ -337,17 +336,17 @@ cmp.setup {
},
completion = {completeopt = 'menu,menuone,noinsert'}
}
cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = ' ' } }))
-- TabNine cmp
local tabnine = require('cmp_tabnine.config')
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'nvim_lsp.setup {}
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 {}