Skip to content

Commit

Permalink
feat: added config options for all plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Sep 9, 2022
1 parent 9fc940e commit 944333c
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions lua/settings/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,21 @@ local M = {}
M.defaults = {
local_settings = { ".nvim.settings.json", vscode = ".vscode/settings.json" },
global_settings = { "nvim.settings.json" },
jsonls = {
configured_servers_only = true, -- only show completion in json settings for configured lsp servers
plugins = {
lspconfig = {
enabled = true,
},
-- configures jsonls to get completion in .nvim.settings files
jsonls = {
enabled = true,
configured_servers_only = true, -- only show completion in json settings for configured lsp servers
},
-- configures sumneko_lua to get completion of lspconfig server settings
sumneko_lua = {
-- nil: by default, this is only enabled in your neovim config directory
-- true/false: you can explicitely enable/disable this by settings the property below
enabled = nil,
},
},
}

Expand All @@ -21,4 +34,8 @@ function M.merge(options)
return vim.tbl_deep_extend("force", {}, M.options, options or {})
end

function M.get(opts)
return require("settings").get("settings.nvim", M.options, opts)
end

return M

0 comments on commit 944333c

Please sign in to comment.