dotfiles from arch

This commit is contained in:
2025-09-28 11:39:12 +02:00
parent 75885729cd
commit d1c6923bbb
1358 changed files with 575835 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
local proto = require 'proto'
local client = require 'client'
local json = require "json"
local config = require 'config'
local function refresh()
if not client.isReady() then
return
end
if not client.getAbility 'workspace.inlayHint.refreshSupport' then
return
end
log.debug('Refresh inlay hints.')
proto.request('workspace/inlayHint/refresh', json.null)
end
config.watch(function (_uri, key, _value, _oldValue)
if key == '' then
refresh()
end
if key:find '^Lua.runtime'
or key:find '^Lua.workspace'
or key:find '^Lua.hint'
or key:find '^files' then
refresh()
end
end)
return {}