Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline complete not working for GOLANG #123

Open
michalrom089 opened this issue Dec 22, 2024 · 0 comments
Open

Multiline complete not working for GOLANG #123

michalrom089 opened this issue Dec 22, 2024 · 0 comments

Comments

@michalrom089
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant