some fixes, switch back to fzf
This commit is contained in:
parent
021a4b7864
commit
08e9528be7
2 changed files with 7 additions and 12 deletions
|
@ -5,24 +5,20 @@ local lspcap = require('cmp_nvim_lsp')
|
|||
.default_capabilities(vim.lsp.protocol.make_client_capabilities())
|
||||
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
|
||||
-- bug workaround for omnisharp https://github.com/OmniSharp/omnisharp-roslyn/issues/2483
|
||||
if client.name == "omnisharp" then
|
||||
local function toSnakeCase(str)
|
||||
return string.gsub(str, "%s*[- ]%s*", "_")
|
||||
end
|
||||
|
||||
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, '-_', '')
|
||||
tokenModifiers[i] = toSnakeCase(v)
|
||||
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, '-_', '')
|
||||
tokenTypes[i] = toSnakeCase(v)
|
||||
end
|
||||
|
||||
--client.server_capabilities.semanticTokensProvider = {
|
||||
-- legend = {},
|
||||
-- vim_lsp_semantic_tokens = {},
|
||||
--}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -20,8 +20,7 @@ plug "sindresorhus/pure"
|
|||
plug "zsh-users/zsh-autosuggestions"
|
||||
plug "zsh-users/zsh-syntax-highlighting"
|
||||
plug "zap-zsh/exa"
|
||||
#plug "zap-zsh/fzf"
|
||||
plug "ellie/atuin"
|
||||
plug "zap-zsh/fzf"
|
||||
plug "fdellwing/zsh-bat"
|
||||
plug "lukechilds/zsh-nvm"
|
||||
|
||||
|
|
Loading…
Reference in a new issue