From 07737b5f97dbfddc5c93d2c3000b6e1f3d202595 Mon Sep 17 00:00:00 2001 From: Phantop Date: Sat, 11 May 2024 18:24:18 -0400 Subject: [PATCH] fix nvim paq slowdown --- nvim/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index f34e216..ee06f00 100755 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -1,4 +1,4 @@ -require "paq" { +local paq = require "paq" { 'ctrlpvim/ctrlp.vim', 'dense-analysis/ale', 'echasnovski/mini.nvim', @@ -32,7 +32,6 @@ require "paq" { { 'williamboman/mason.nvim', build = ':MasonUpdate' }, } -vim.cmd("PaqSync") require("aerial").setup() require("gitsigns").setup() require("ibl").setup() @@ -49,6 +48,7 @@ null_ls.setup({sources = { require("null-ls").register(require("none-ls-shellcheck.diagnostics")) require("null-ls").register(require("none-ls-shellcheck.code_actions")) +-- makes cmp tab functionality work as expected local has_words_before = function() unpack = unpack or table.unpack local line, col = unpack(vim.api.nvim_win_get_cursor(0))