tweak omnisharp on_attach stuff

This commit is contained in:
Rudis Muiznieks 2023-04-24 16:01:39 -05:00
parent d53a7052cc
commit cd91da4ce2
Signed by: rudism
GPG key ID: CABF2F86EF7884F9
3 changed files with 18 additions and 5 deletions

View file

@ -15,7 +15,7 @@
{ "title": "Jellyfin", "url": "https://home.ln0.us:8920/", "icon": "collection-play" },
{ "title": "Nebula", "url": "https://nebula.app/myshows", "icon": "film" },
{ "title": "YouTube", "url": "https://www.youtube.com/feed/subscriptions", "icon": "youtube" },
{ "title": "Audiobooks", "url": "https://audio.sitosis.com/", "icon": "cassette-fill" },
{ "title": "Audiobooks", "url": "https://audio.home.ln0.us/", "icon": "cassette-fill" },
{ "title": "Pandora", "url": "https://www.pandora.com/", "icon": "music-note-list" },
{ "title": "Radiostasis", "url": "https://radiostasis.com/", "icon": "broadcast-pin" },
{ "title": "Net Authority", "url": "https://netauthority.org/", "icon": "mastodon" },

View file

@ -7,10 +7,22 @@ local lspatt = function(client, bufnr)
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
-- disabling semantic highlighting for omnisharp https://github.com/OmniSharp/omnisharp-roslyn/issues/2483
if client.name == "omnisharp" then
client.server_capabilities.semanticTokensProvider = {
legend = {},
vim_lsp_semantic_tokens = {},
}
local tokenModifiers = client.server_capabilities.semanticTokensProvider.legend.tokenModifiers
for i, v in ipairs(tokenModifiers) do
local tmp = string.gsub(v, ' ', '_')
tokenModifiers[i] = string.gsub(tmp, '-_', '')
end
local tokenTypes = client.server_capabilities.semanticTokensProvider.legend.tokenTypes
for i, v in ipairs(tokenTypes) do
local tmp = string.gsub(v, ' ', '_')
tokenTypes[i] = string.gsub(tmp, '-_', '')
end
--client.server_capabilities.semanticTokensProvider = {
-- legend = {},
-- vim_lsp_semantic_tokens = {},
--}
end
end

View file

@ -11,3 +11,4 @@ hash -d b=/mnt/beeblebrox
alias nasavpn='/home/rudism/src/nasavpn/nasavpn'
alias dockerrm='docker stop $(docker ps -aq); docker rm $(docker ps -aq); docker system prune -f'
alias webcamfix='sudo modprobe v4l2loopback devices=1 video_nr=9 card_label=VirtualCam exclusive_caps=1 && ffmpeg -f video4linux2 -framerate 25 -video_size 1280x720 -input_format mjpeg -i /dev/video0 -f v4l2 -pix_fmt yuv420p /dev/video9; sudo rmmod v4l2loopback'
alias fiio='sudo mount -o uid=rudism,gid=rudism UUID=3317-74BF /mnt/fiio'