summaryrefslogtreecommitdiff
path: root/.config/nvim/lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua')
-rw-r--r--.config/nvim/lua/custom/plugins/lsp-plugins.lua2
-rw-r--r--.config/nvim/lua/custom/plugins/lsp.lua3
2 files changed, 3 insertions, 2 deletions
diff --git a/.config/nvim/lua/custom/plugins/lsp-plugins.lua b/.config/nvim/lua/custom/plugins/lsp-plugins.lua
index 5a6f275..dfde0d5 100644
--- a/.config/nvim/lua/custom/plugins/lsp-plugins.lua
+++ b/.config/nvim/lua/custom/plugins/lsp-plugins.lua
@@ -24,7 +24,7 @@ return {
-- FIXME: fork the repo and fix the following issues
-- Make both insert and normal be toggelable rather than insert always showing and normal toggleable
'ray-x/lsp_signature.nvim',
- event = 'VeryLazy',
+ event = 'LspAttach',
opts = {
bind = true, -- This is mandatory, otherwise border config won't get registered.
handler_opts = { border = 'single' },
diff --git a/.config/nvim/lua/custom/plugins/lsp.lua b/.config/nvim/lua/custom/plugins/lsp.lua
index f6b8b28..6e33331 100644
--- a/.config/nvim/lua/custom/plugins/lsp.lua
+++ b/.config/nvim/lua/custom/plugins/lsp.lua
@@ -2,7 +2,8 @@ return {
-- NOTE: Make sure the order is as follows:
-- Mason loads -> Mason lspconfig loads -> Lspconfig loads
'neovim/nvim-lspconfig',
- event = { 'BufReadPre', 'BufNewFile' },
+ -- event = { 'BufReadPre', 'BufNewFile' },
+ event = "VeryLazy",
dependencies = {
'hrsh7th/cmp-nvim-lsp',
{ 'antosha417/nvim-lsp-file-operations', conifg = true },