This commit is contained in:
Matthew Leong 2023-08-30 21:42:39 -07:00
parent efdd17e22b
commit 7779295111

View file

@ -1,15 +1,7 @@
local utils = require('cosmic.utils')
local lsp_utils = require('cosmic.utils.lsp')
local user_config = require('cosmic.core.user')
local M = {}
local function toggle_inlay_hints(bufnr, enabled)
return function()
enabled = not enabled
vim.lsp.inlay_hint(bufnr, enabled)
end
end
-- Mappings.
function M.init(client, bufnr)
local buf_map = utils.create_buf_map(bufnr, {