From ca94e7d106123b258c08364b0ca9bb7d77967420 Mon Sep 17 00:00:00 2001 From: Luke Else Date: Thu, 18 May 2023 11:27:15 +0100 Subject: [PATCH] Moved Inlay hints out of attach function --- nvim/after/plugin/lsp.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nvim/after/plugin/lsp.lua b/nvim/after/plugin/lsp.lua index 3fdef83..ac72bbb 100644 --- a/nvim/after/plugin/lsp.lua +++ b/nvim/after/plugin/lsp.lua @@ -17,7 +17,7 @@ lsp.configure('lua-language-server', { } }) - +local ih = require('simrat39/inlay-hints') local cmp = require('cmp') local cmp_select = {behavior = cmp.SelectBehavior.Select} local cmp_mappings = lsp.defaults.cmp_mappings({ @@ -58,9 +58,9 @@ lsp.on_attach(function(client, bufnr) vim.keymap.set('n', ']d', function() vim.diagnostic.goto_prev() end, opts) vim.keymap.set('i', '', function() vim.lsp.buf.signature_help() end, opts) - local ih = require('simrat39/inlay-hints') ih.on_attach(client, bufnr) -end) +end +) lsp.setup()