Skip to content

[Question] Encoding utf 16, how to change? [version 0.6.3] #30

@PoutineSyropErable

Description

@PoutineSyropErable

I got it from the Arch Linux AUR. I'm using it in neovim.

I can't change it's encoding to UTF-8.

So, is this a problem on my end, or just that this has utf-16 default, or stuck with utf-16.

lspconfig.opencl_ls.setup({
	cmd = { "opencl-language-server" },
	filetypes = { "opencl" },
	root_dir = lspconfig.util.root_pattern(".git", ".asm-lsp.toml"),
	capabilities = vim.tbl_deep_extend("force", lsp_defaults.capabilities, {
		offsetEncoding = "utf-8",
		positionEncodings = "utf-8",
	}),
	init_options = {
		offsetEncoding = "utf-8", -- Some servers need this too
	},
})

vim.lsp: Position Encodings ~

  • ⚠️ WARNING Found buffers attached to multiple clients with different position encodings.
    • Buffer 1: UTF-16 (client id(s): 1), UTF-8 (client id(s): 2)
    • ADVICE:
      • Use the positionEncodings client capability to ensure all clients use the same position encoding

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