Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Commit

Permalink
fix: new settings.nvim API
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Sep 11, 2022
1 parent 42eab7e commit 6477ca9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .nvim.settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lua-dev": {
"lua-dev.nvim": {
"library": {
"enabled": true,
"plugins": [
Expand Down
3 changes: 1 addition & 2 deletions lua/lua-dev/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ function M.on_new_config(config, root_dir)
end

pcall(function()
local settings = require("settings").get_settings({ file = root_dir, key = "lua-dev" })
opts = vim.tbl_deep_extend("force", opts, settings)
opts = require("settings").get("lua-dev.nvim", opts, { file = root_dir })
end)

pcall(opts.override, root_dir, opts.library)
Expand Down

0 comments on commit 6477ca9

Please sign in to comment.