diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2020-01-31 00:00:50 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-31 00:00:50 -0800 |
| commit | b487481e19ab803f2fac1c7acc10c83c743dd39b (patch) | |
| tree | 9eb735e6c3ab6e75ca767ee0ab886e6ba5ce32de /lua/nvim_lsp/elmls.lua | |
| parent | [docgen] Update README.md (diff) | |
| download | nvim-lspconfig-b487481e19ab803f2fac1c7acc10c83c743dd39b.tar nvim-lspconfig-b487481e19ab803f2fac1c7acc10c83c743dd39b.tar.gz nvim-lspconfig-b487481e19ab803f2fac1c7acc10c83c743dd39b.tar.bz2 nvim-lspconfig-b487481e19ab803f2fac1c7acc10c83c743dd39b.tar.lz nvim-lspconfig-b487481e19ab803f2fac1c7acc10c83c743dd39b.tar.xz nvim-lspconfig-b487481e19ab803f2fac1c7acc10c83c743dd39b.tar.zst nvim-lspconfig-b487481e19ab803f2fac1c7acc10c83c743dd39b.zip | |
rename "skeleton" to "configs" #100
`nvim_lsp/skeleton.lua` is not really a skeleton, it's a `configs`
class that provides
1. actual functionality
2. a bunch of configs
Each config is added to the `configs` object (FKA "skeleton") as
a property. Those configs are not "templates", they are "configs". So we
should clean up the wording in various places to say "config" instead of
"skeleton"/"template".
Closes #64
Diffstat (limited to 'lua/nvim_lsp/elmls.lua')
| -rw-r--r-- | lua/nvim_lsp/elmls.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lua/nvim_lsp/elmls.lua b/lua/nvim_lsp/elmls.lua index 46799c4a..b29dadbf 100644 --- a/lua/nvim_lsp/elmls.lua +++ b/lua/nvim_lsp/elmls.lua @@ -1,4 +1,4 @@ -local skeleton = require 'nvim_lsp/skeleton' +local configs = require 'nvim_lsp/configs' local util = require 'nvim_lsp/util' local lsp = vim.lsp local api = vim.api @@ -16,7 +16,7 @@ local default_capabilities = lsp.protocol.make_client_capabilities() default_capabilities.offsetEncoding = {"utf-8", "utf-16"} local elm_root_pattern = util.root_pattern("elm.json") -skeleton[server_name] = { +configs[server_name] = { default_config = util.utf8_config { cmd = {bin_name}; -- TODO(ashkan) if we comment this out, it will allow elmls to operate on elm.json. It seems like it could do that, but no other editor allows it right now. @@ -70,7 +70,7 @@ npm install -g elm elm-test elm-format @elm-tooling/elm-language-server }; } -skeleton[server_name].install = installer.install -skeleton[server_name].install_info = installer.info +configs[server_name].install = installer.install +configs[server_name].install_info = installer.info -- vim:et ts=2 sw=2 |
