From 2c6717b0a50c7edc1bbdc72b01738306db93c971 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Mon, 7 Jun 2021 12:21:23 +0200 Subject: vim: some more compe sources + vim-matchup --- common/vim.nix | 6 +++++- dotfiles/vim.lua | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/common/vim.nix b/common/vim.nix index ade66e1..ec21e75 100644 --- a/common/vim.nix +++ b/common/vim.nix @@ -36,7 +36,7 @@ let inherit (config.vim) beforePlugins; customRC = '' - autocmd VimEnter * lua require("myConfig") + lua require("myConfig") ${cfg.extraConfig} ''; @@ -58,6 +58,8 @@ let lsp-status-nvim nvim-compe + compe-latex-symbols + compe-zsh vim-vsnip vim-vsnip-integ @@ -69,6 +71,8 @@ let nvim-treesitter-textobjects nvim-treesitter-context + vim-matchup + # Motions camelcasemotion surround diff --git a/dotfiles/vim.lua b/dotfiles/vim.lua index c09b8e0..ca346f8 100644 --- a/dotfiles/vim.lua +++ b/dotfiles/vim.lua @@ -171,16 +171,18 @@ require("compe").setup { source = { buffer = true, calc = true, + latex_symbols = true, nvim_lsp = true, nvim_lua = true, nvim_treesitter = true, + omni = false, path = true, spell = true, vsnip = true, + zsh = true, }, } - map("i", "", "compe#confirm('')", { noremap = true, silent = true, expr = true }) map("i", "", "compe#close('')", { noremap = true, silent = true, expr = true }) -- cgit v1.2.3