Skip to content

Commit

Permalink
enhance: update go.nvim lsp config
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyinzuo committed Sep 5, 2024
1 parent acc8b5b commit 332325f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cog.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tag_prefix = "v"
chore = { changelog_title = "Chore", omit_from_changelog = true }
ci = { changelog_title = "CI", omit_from_changelog = true }
docs = { changelog_title = "Docs", omit_from_changelog = true }
enhance = { changelog_title = "Enhance", omit_from_changelog = true }
enhance = { changelog_title = "Enhancement", omit_from_changelog = false }

[changelog]
path = "CHANGELOG.md"
Expand Down
5 changes: 5 additions & 0 deletions root/.config/nvim/lua/plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ if vim.g.vimrc_lsp == "nvim-lsp" then
lsp_keymaps = false, -- true: use default keymaps defined in go/lsp.lua
lsp_cfg = {
capabilities = require("lsp").get_capabilities(),
settings = {
gopls = {
semanticTokens = false, -- disable semantic string tokens so we can use treesitter highlight injection
}
}
},
-- after go.nvim's on_attach is called, then this on_attach will be called
lsp_on_client_start = function(client, bufnr)
Expand Down

0 comments on commit 332325f

Please sign in to comment.