gopls and go.nvim stuff
This commit is contained in:
parent
5e258dca31
commit
b7e772df19
3 changed files with 59 additions and 28 deletions
|
|
@ -1,6 +1,6 @@
|
|||
local M = {
|
||||
'ray-x/go.nvim',
|
||||
dependencies = { -- optional packages
|
||||
dependencies = {
|
||||
'ray-x/guihua.lua',
|
||||
'neovim/nvim-lspconfig',
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
|
|
@ -12,13 +12,14 @@ local M = {
|
|||
function M.config()
|
||||
-- setup your go.nvim
|
||||
require('go').setup({
|
||||
lsp_keymaps = false, -- disable the lsp keymaps defined by go.nvim. It's true by default
|
||||
lsp_inlay_hints = {
|
||||
enable = true,
|
||||
-- hint style, set to 'eol' for end-of-line hints, 'inlay' for inline hints
|
||||
-- inlay only avalible for 0.10.x
|
||||
style = 'eol',
|
||||
},
|
||||
-- lsp_cfg = false,
|
||||
-- lsp_keymaps = false, -- disable the lsp keymaps defined by go.nvim. It's true by default
|
||||
-- lsp_inlay_hints = {
|
||||
-- enable = true,
|
||||
-- -- hint style, set to 'eol' for end-of-line hints, 'inlay' for inline hints
|
||||
-- -- inlay only avalible for 0.10.x
|
||||
-- style = 'eol',
|
||||
-- },
|
||||
})
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue