some fixes, switch back to fzf

This commit is contained in:
Rudis Muiznieks 2023-06-04 13:48:33 -05:00
parent 021a4b7864
commit 08e9528be7
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
2 changed files with 7 additions and 12 deletions

View File

@ -5,24 +5,20 @@ local lspcap = require('cmp_nvim_lsp')
.default_capabilities(vim.lsp.protocol.make_client_capabilities()) .default_capabilities(vim.lsp.protocol.make_client_capabilities())
local lspatt = function(client, bufnr) local lspatt = function(client, bufnr)
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') 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 -- bug workaround for omnisharp https://github.com/OmniSharp/omnisharp-roslyn/issues/2483
if client.name == "omnisharp" then if client.name == "omnisharp" then
local function toSnakeCase(str)
return string.gsub(str, "%s*[- ]%s*", "_")
end
local tokenModifiers = client.server_capabilities.semanticTokensProvider.legend.tokenModifiers local tokenModifiers = client.server_capabilities.semanticTokensProvider.legend.tokenModifiers
for i, v in ipairs(tokenModifiers) do for i, v in ipairs(tokenModifiers) do
local tmp = string.gsub(v, ' ', '_') tokenModifiers[i] = toSnakeCase(v)
tokenModifiers[i] = string.gsub(tmp, '-_', '')
end end
local tokenTypes = client.server_capabilities.semanticTokensProvider.legend.tokenTypes local tokenTypes = client.server_capabilities.semanticTokensProvider.legend.tokenTypes
for i, v in ipairs(tokenTypes) do for i, v in ipairs(tokenTypes) do
local tmp = string.gsub(v, ' ', '_') tokenTypes[i] = toSnakeCase(v)
tokenTypes[i] = string.gsub(tmp, '-_', '')
end end
--client.server_capabilities.semanticTokensProvider = {
-- legend = {},
-- vim_lsp_semantic_tokens = {},
--}
end end
end end

View File

@ -20,8 +20,7 @@ plug "sindresorhus/pure"
plug "zsh-users/zsh-autosuggestions" plug "zsh-users/zsh-autosuggestions"
plug "zsh-users/zsh-syntax-highlighting" plug "zsh-users/zsh-syntax-highlighting"
plug "zap-zsh/exa" plug "zap-zsh/exa"
#plug "zap-zsh/fzf" plug "zap-zsh/fzf"
plug "ellie/atuin"
plug "fdellwing/zsh-bat" plug "fdellwing/zsh-bat"
plug "lukechilds/zsh-nvm" plug "lukechilds/zsh-nvm"