diff options
author | Jackson Taylor <jtaylor@classicalconversations.com> | 2024-01-30 11:18:34 -0500 |
---|---|---|
committer | Jackson Taylor <jtaylor@classicalconversations.com> | 2024-01-30 11:18:34 -0500 |
commit | 6f02136efa9b76cb2781ddd8bed12d1637004932 (patch) | |
tree | f23d003265ce6ed6ba4689600ae99dcb0e384cbe | |
parent | fa3cfa56f58a7295fac93dc7565fbe049211444a (diff) |
Change debounce settings for cmp
This seemed to have a pretty good performance increase
-rw-r--r-- | after/plugin/lsp.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index f58bfbd..a923813 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -24,6 +24,11 @@ lsp.configure('lua-language-server', { -- Autocomplettion engine setup -- This is the drop downs that come up local cmp = require('cmp') + +cmp.setup({ + performance = { + debounce = 150 -- I'm pretty sure this is the god-sent setting that I have been looking for +}}) local cmp_select = {behavior = cmp.SelectBehavior.Select} -- These are the mappings to use to navigate the dropdown menu. I usually use <CR> (Enter) the most, or the arrow keys, but these are nice. local cmp_mappings = lsp.defaults.cmp_mappings({ |