Skip to content

Instantly share code, notes, and snippets.

@jdrouhard
jdrouhard / ts-fix.lua
Created October 17, 2022 02:02
nvim: fix treesitter highlighting after breaking change
-- This "undeprecates" the "TS..." highlight groups
-- from the treesitter highlight chain and fixes
-- colorschemes that have not yet been ported to the
-- new style @group highlights. Simply require this
-- file in your setup somewhere.
local ts = vim.treesitter
local api = vim.api
local M = {}
local cmd = vim.cmd
local api = vim.api
local M = {}
function M.autocmd(group, cmds, clear)
clear = clear == nil and true or clear
if type(cmds) == 'string' then cmds = {cmds} end
cmd('augroup ' .. group)
if clear then cmd [[au!]] end
local lsp_util = require('vim.lsp.util')
local utils = require('utils')
local autocmd = utils.autocmd
local spinner_frames = {'⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'}
local index = 0
local status_timer = nil
local progress_cache = nil
local requests_cache = nil
local active_requests = {}
diff --git a/client/remote.cpp b/client/remote.cpp
index 82b145c..250ef47 100644
--- a/client/remote.cpp
+++ b/client/remote.cpp
@@ -711,11 +711,16 @@ maybe_build_local(MsgChannel *local_daemon, UseCSMsg *usecs, CompileJob &job,
}
// Minimal version of remote host that we want to use for the job.
-static int minimalRemoteVersion( const CompileJob& )
+static int minimalRemoteVersion( const CompileJob& job)
diff --git a/client/X11/xf_client.c b/client/X11/xf_client.c
index 036ce24..5ca96d4 100644
--- a/client/X11/xf_client.c
+++ b/client/X11/xf_client.c
@@ -803,6 +803,8 @@ BOOL xf_pre_connect(freerdp* instance)
xfc->_NET_WM_MOVERESIZE = XInternAtom(xfc->display, "_NET_WM_MOVERESIZE", False);
xfc->_NET_MOVERESIZE_WINDOW = XInternAtom(xfc->display, "_NET_MOVERESIZE_WINDOW", False);
xfc->_NET_WM_FULLSCREEN_MONITORS = XInternAtom(xfc->display, "_NET_WM_FULLSCREEN_MONITORS", False);
+ xfc->_NET_WM_ALLOWED_ACTIONS = XInternAtom(xfc->display, "_NET_WM_ALLOWED_ACTIONS", False);
+ xfc->_NET_WM_ACTION_FULLSCREEN = XInternAtom(xfc->display, "_NET_WM_ACTION_FULLSCREEN", False);