aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-10-20 16:04:41 +0200
committerWilliam Boman <william@redwill.se>2021-10-20 16:05:14 +0200
commit767269660d0a29ea234f1937cf7f82b39893f57a (patch)
tree49e1097854b6a93b1adabb3d04346f689efa353a /lua
parentEslint doc for how to resolve eslint in yarn2 repo's (#163) (diff)
downloadmason-767269660d0a29ea234f1937cf7f82b39893f57a.tar
mason-767269660d0a29ea234f1937cf7f82b39893f57a.tar.gz
mason-767269660d0a29ea234f1937cf7f82b39893f57a.tar.bz2
mason-767269660d0a29ea234f1937cf7f82b39893f57a.tar.lz
mason-767269660d0a29ea234f1937cf7f82b39893f57a.tar.xz
mason-767269660d0a29ea234f1937cf7f82b39893f57a.tar.zst
mason-767269660d0a29ea234f1937cf7f82b39893f57a.zip
vim.notify deprecation notices
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer/adapters/nvim-tree.lua2
-rw-r--r--lua/nvim-lsp-installer/extras/tsserver.lua5
-rw-r--r--lua/nvim-lsp-installer/extras/utils.lua1
3 files changed, 8 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/adapters/nvim-tree.lua b/lua/nvim-lsp-installer/adapters/nvim-tree.lua
index ddfaa85e..fa1fdd24 100644
--- a/lua/nvim-lsp-installer/adapters/nvim-tree.lua
+++ b/lua/nvim-lsp-installer/adapters/nvim-tree.lua
@@ -1,6 +1,8 @@
local notify = require "nvim-lsp-installer.notify"
local tsserverExtras = require "nvim-lsp-installer.extras.tsserver"
+notify("nvim-tree adapter has been deprecated. More information: https://git.io/J6San.", vim.log.levels.WARN)
+
-- @deprecated
local M = {}
diff --git a/lua/nvim-lsp-installer/extras/tsserver.lua b/lua/nvim-lsp-installer/extras/tsserver.lua
index e8a85227..51ba4fc1 100644
--- a/lua/nvim-lsp-installer/extras/tsserver.lua
+++ b/lua/nvim-lsp-installer/extras/tsserver.lua
@@ -1,7 +1,11 @@
local extras = require "nvim-lsp-installer.extras.utils"
+local notify = require "nvim-lsp-installer.notify"
local M = {}
+notify("tsserver extras has been deprecated. More information: https://git.io/J6San.", vim.log.levels.WARN)
+
+-- @deprecated
function M.rename_file(old, new)
local old_uri = vim.uri_from_fname(old)
local new_uri = vim.uri_from_fname(new)
@@ -17,6 +21,7 @@ function M.rename_file(old, new)
})
end
+-- @deprecated
function M.organize_imports(bufname)
bufname = bufname or vim.api.nvim_buf_get_name(0)
diff --git a/lua/nvim-lsp-installer/extras/utils.lua b/lua/nvim-lsp-installer/extras/utils.lua
index a9e2a07c..c032b5ac 100644
--- a/lua/nvim-lsp-installer/extras/utils.lua
+++ b/lua/nvim-lsp-installer/extras/utils.lua
@@ -1,5 +1,6 @@
local M = {}
+-- @deprecated
function M.send_client_request(client_name, ...)
for _, client in pairs(vim.lsp.get_active_clients()) do
if client.name == client_name then