Moved Inlay hints out of attach function
This commit is contained in:
		@@ -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', '<C-h>', function() vim.lsp.buf.signature_help() end, opts)
 | 
			
		||||
 | 
			
		||||
  local ih = require('simrat39/inlay-hints')
 | 
			
		||||
  ih.on_attach(client, bufnr)
 | 
			
		||||
end)  
 | 
			
		||||
end
 | 
			
		||||
)  
 | 
			
		||||
 | 
			
		||||
lsp.setup()
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user