gopls noSemanticString option

pull/429/merge
ray-x 2 months ago
parent 72932a7799
commit 3ff58b0741

@ -375,8 +375,8 @@ M.setups = function()
diagnosticsTrigger = 'Save',
symbolMatcher = 'FastFuzzy',
semanticTokens = true,
noSemanticTokens = true, -- disable semantic string tokens so we can use treesitter highlight injection
vulncheck = true,
noSemanticString = true, -- disable semantic string tokens so we can use treesitter highlight injection
vulncheck = 'Imports',
['local'] = get_current_gomod(),
gofumpt = _GO_NVIM_CFG.lsp_gofumpt or false, -- true|false, -- turn on for new repos, gofmpt is good but also create code turmoils
buildFlags = { '-tags', 'integration' },

@ -273,10 +273,12 @@ M.nodes_at_cursor = function(query, default, bufnr, ntype)
end
ulog(row, col, vim.inspect(nodes_at_cursor):sub(1, 100))
if nodes_at_cursor == nil or #nodes_at_cursor == 0 then
vim.notify(
'Unable to find any nodes at pos. ' .. tostring(row) .. ':' .. tostring(col),
vim.log.levels.DEBUG
)
if _GO_NVIM_CFG.verbose then
vim.notify(
'Unable to find any nodes at pos. ' .. tostring(row) .. ':' .. tostring(col),
vim.log.levels.DEBUG
)
end
ulog('Unable to find any nodes at pos. ' .. tostring(row) .. ':' .. tostring(col))
return nil
end

Loading…
Cancel
Save