Skip to content

Commit

Permalink
fix(config): select only one lib when multiple are provided
Browse files Browse the repository at this point in the history
  • Loading branch information
S1M0N38 committed Feb 11, 2024
1 parent 787bf0d commit 7325877
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/love2d/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ end
config.setup = function(opts)
config.options = vim.tbl_deep_extend("force", {}, config.defaults, opts or {})
if config.options.path_to_love_library ~= "" then
local library_path = vim.fn.expand(config.options.path_to_love_library)
local library_path = vim.fn.split(vim.fn.expand(config.options.path_to_love_library), "\n")[1]
if vim.fn.isdirectory(library_path) == 0 then
vim.notify("The library path does not exist.", vim.log.levels.ERROR)
vim.notify("The library path " .. library_path .. " does not exist.", vim.log.levels.ERROR)
return
end
setup_lsp(library_path)
Expand Down

0 comments on commit 7325877

Please sign in to comment.