Skip to content

Multiline complete not working for GOLANG #123

@michalrom089

Description

@michalrom089

Hi,

I have a problem with multiline insertions for the GO code. It works fine for LUA (e.g. nvim config) but it doesn't for GO.

Here are the examples:

  • single line for GO
    Screenshot 2024-12-22 at 19 46 19
  • multiline for LUA
    obraz

Here's my config

return {
	{
		"olimorris/codecompanion.nvim",
		dependencies = {
			"nvim-lua/plenary.nvim",
			"nvim-treesitter/nvim-treesitter",
		},
		config = function()
			require("codecompanion").setup({})

			vim.cmd([[
			             let g:codecompanion_disable_inline_edit = 1
			         ]])
			vim.keymap.set("n", "<leader>ac", "<cmd>CodeCompanionChat Toggle<cr>", { noremap = true, silent = true })
		end,
	},
	{ "MeanderingProgrammer/render-markdown.nvim", ft = { "markdown", "codecompanion" } },
	{
		"zbirenbaum/copilot.lua",
		event = "InsertEnter",
		config = function()
			local copilot = require("copilot")
			local Snacks = require("snacks")
			copilot.setup({
				panel = {
					enabled = false,
				},
				suggestion = {
					enabled = false,
				},
			})
		end,
	},
	{
		"zbirenbaum/copilot-cmp",
		config = function()
			require("copilot_cmp").setup()
		end,
	},
}

I'm not sure what's not working here, it seems that the problem is somehow related to the the languege.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions