diff options
| author | NAKAI Tsuyoshi <82267684+uga-rosa@users.noreply.github.com> | 2023-12-19 14:57:07 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-19 13:57:07 +0800 |
| commit | 862db3e1bc8bce8e85777bc2fcb9aea3005b8f0a (patch) | |
| tree | b5a418aecc07b76564d623c49c4941c23962f1bc /lua/lspconfig/server_configurations/denols.lua | |
| parent | fix(typos): typos root directory indicator (#2935) (diff) | |
| download | nvim-lspconfig-862db3e1bc8bce8e85777bc2fcb9aea3005b8f0a.tar nvim-lspconfig-862db3e1bc8bce8e85777bc2fcb9aea3005b8f0a.tar.gz nvim-lspconfig-862db3e1bc8bce8e85777bc2fcb9aea3005b8f0a.tar.bz2 nvim-lspconfig-862db3e1bc8bce8e85777bc2fcb9aea3005b8f0a.tar.lz nvim-lspconfig-862db3e1bc8bce8e85777bc2fcb9aea3005b8f0a.tar.xz nvim-lspconfig-862db3e1bc8bce8e85777bc2fcb9aea3005b8f0a.tar.zst nvim-lspconfig-862db3e1bc8bce8e85777bc2fcb9aea3005b8f0a.zip | |
feat(denols): follow the latest default value of the vscode extension (#2936)
* feat(denols): follow the latest default value of the vscode extension
* fix(denols): nvim_buf_set_option is deprecated
Diffstat (limited to 'lua/lspconfig/server_configurations/denols.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/denols.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lua/lspconfig/server_configurations/denols.lua b/lua/lspconfig/server_configurations/denols.lua index f35e8330..4443352c 100644 --- a/lua/lspconfig/server_configurations/denols.lua +++ b/lua/lspconfig/server_configurations/denols.lua @@ -27,9 +27,9 @@ local function virtual_text_document_handler(uri, res, client) end vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, lines) - vim.api.nvim_buf_set_option(bufnr, 'readonly', true) - vim.api.nvim_buf_set_option(bufnr, 'modified', false) - vim.api.nvim_buf_set_option(bufnr, 'modifiable', false) + vim.api.nvim_set_option_value('readonly', true, { buf = bufnr }) + vim.api.nvim_set_option_value('modified', false, { buf = bufnr }) + vim.api.nvim_set_option_value('modifiable', false, { buf = bufnr }) lsp.buf_attach_client(bufnr, client.id) end @@ -81,8 +81,6 @@ return { imports = { hosts = { ['https://deno.land'] = true, - ['https://crux.land'] = true, - ['https://x.nest.land'] = true, }, }, }, |
