it's actually working here lol
This commit is contained in:
parent
cc77bf697a
commit
11845721d8
|
@ -1,6 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
|
||||||
let
|
let
|
||||||
customPlugins = {
|
customPlugins = {
|
||||||
vim-zettel = pkgs.vimUtils.buildVimPlugin {
|
vim-zettel = pkgs.vimUtils.buildVimPlugin {
|
||||||
|
@ -275,6 +273,7 @@ in
|
||||||
lua <<EOF
|
lua <<EOF
|
||||||
-- Setup nvim-cmp.
|
-- Setup nvim-cmp.
|
||||||
local cmp = require('cmp')
|
local cmp = require('cmp')
|
||||||
|
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
||||||
local t = function(str)
|
local t = function(str)
|
||||||
return vim.api.nvim_replace_termcodes(str, true, true, true)
|
return vim.api.nvim_replace_termcodes(str, true, true, true)
|
||||||
end
|
end
|
||||||
|
@ -337,17 +336,17 @@ cmp.setup {
|
||||||
},
|
},
|
||||||
completion = {completeopt = 'menu,menuone,noinsert'}
|
completion = {completeopt = 'menu,menuone,noinsert'}
|
||||||
}
|
}
|
||||||
|
cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = ' ' } }))
|
||||||
-- TabNine cmp
|
-- TabNine cmp
|
||||||
local tabnine = require('cmp_tabnine.config')
|
local tabnine = require('cmp_tabnine.config')
|
||||||
tabnine:setup({max_lines = 1000, max_num_results = 20, sort = true})
|
tabnine:setup({max_lines = 1000, max_num_results = 20, sort = true})
|
||||||
|
|
||||||
-- Setup lspconfig.
|
-- Setup lspconfig.
|
||||||
local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
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'clojure_lsp.setup {}
|
--require'lspconfig'rnix.setup {}
|
||||||
require'lspconfig'rnix.setup {}
|
-- require'lspconfig'pylsp.setup {}
|
||||||
require'lspconfig'pylsp.setup {}
|
-- require'lspconfig'terraform_lsp.setup {}
|
||||||
require'lspconfig'terraform_lsp.setup {}
|
|
||||||
|
|
||||||
-- Bufferline
|
-- Bufferline
|
||||||
require('bufferline').setup {}
|
require('bufferline').setup {}
|
||||||
|
|
Loading…
Reference in a new issue