Skip to content

Commit

Permalink
chore: remove deprecation message in old versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lopi-py committed Dec 31, 2023
1 parent d86d123 commit 1c1b50a
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions lua/luau-lsp/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,7 @@ local function get_args()
return args
end

M.setup = void(function(old_opts)
if old_opts then
vim.deprecate(
'require("luau-lsp.server").setup {...}',
'require("luau-lsp").setup {...}',
"1.2.0",
"luau-lsp.nvim",
false
)
return
end

M.setup = void(function()
local opts = vim.deepcopy(c.get().server)
opts.cmd = vim.list_extend(opts.cmd, get_args())

Expand Down

0 comments on commit 1c1b50a

Please sign in to comment.