diff options
| author | Francisco <fg@frang.io> | 2024-05-31 22:28:48 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-01 09:28:48 +0800 |
| commit | 35f73cdf8bfc5dca08bff18de114cd3859751d27 (patch) | |
| tree | 900cd28825f7f0cbb041503872c3a4b5c623eac4 /lua/lspconfig/server_configurations/elmls.lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-35f73cdf8bfc5dca08bff18de114cd3859751d27.tar nvim-lspconfig-35f73cdf8bfc5dca08bff18de114cd3859751d27.tar.gz nvim-lspconfig-35f73cdf8bfc5dca08bff18de114cd3859751d27.tar.bz2 nvim-lspconfig-35f73cdf8bfc5dca08bff18de114cd3859751d27.tar.lz nvim-lspconfig-35f73cdf8bfc5dca08bff18de114cd3859751d27.tar.xz nvim-lspconfig-35f73cdf8bfc5dca08bff18de114cd3859751d27.tar.zst nvim-lspconfig-35f73cdf8bfc5dca08bff18de114cd3859751d27.zip | |
fix: avoid overriding global default capabilities (#3181)
Diffstat (limited to 'lua/lspconfig/server_configurations/elmls.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/elmls.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/lspconfig/server_configurations/elmls.lua b/lua/lspconfig/server_configurations/elmls.lua index f42449d4..e3e63bcd 100644 --- a/lua/lspconfig/server_configurations/elmls.lua +++ b/lua/lspconfig/server_configurations/elmls.lua @@ -1,9 +1,6 @@ local util = require 'lspconfig.util' -local lsp = vim.lsp local api = vim.api -local default_capabilities = lsp.protocol.make_client_capabilities() -default_capabilities.offsetEncoding = { 'utf-8', 'utf-16' } local elm_root_pattern = util.root_pattern 'elm.json' return { @@ -23,6 +20,9 @@ return { disableElmLSDiagnostics = false, onlyUpdateDiagnosticsOnSave = false, }, + capabilities = { + offsetEncoding = { 'utf-8', 'utf-16' }, + }, }, docs = { description = [[ |
