Skip to content

Commit

Permalink
feat(fennel-ls): allow utf-8 offsetEncoding
Browse files Browse the repository at this point in the history
The `fennel-ls` server can support `utf-8` offsetEncoding now, and
it is preferred, as both neovim and fennel-ls use UTF-8 text
encoding natively.
  • Loading branch information
XeroOl committed Feb 9, 2024
1 parent f12f1b9 commit c3869bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/lspconfig/server_configurations/fennel_ls.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
local util = require 'lspconfig.util'

local default_capabilities = vim.lsp.protocol.make_client_capabilities()
default_capabilities.offsetEncoding = { 'utf-8', 'utf-16' }

return {
default_config = {
cmd = { 'fennel-ls' },
Expand All @@ -8,6 +11,7 @@ return {
return util.find_git_ancestor(dir)
end,
settings = {},
capabilities = default_capabilities,
},
docs = {
description = [[
Expand Down

0 comments on commit c3869bd

Please sign in to comment.