diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-03-20 15:21:33 -0300 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-05-16 09:04:17 -0600 |
| commit | 90144941f7126383f279033bad6e0f3485970c42 (patch) | |
| tree | 8dde739c6b1ba7ebbf1a0f93d3965cc741ded1d7 /settings.lua | |
| parent | 9230a00c61db505eb1146df0c4545cd181bec9e8 (diff) | |
| download | vis-lspc-90144941f7126383f279033bad6e0f3485970c42.tar.gz vis-lspc-90144941f7126383f279033bad6e0f3485970c42.zip | |
do not apply unspecified sections to project local settings
Diffstat (limited to 'settings.lua')
| -rw-r--r-- | settings.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/settings.lua b/settings.lua index 0ce1185..289bb96 100644 --- a/settings.lua +++ b/settings.lua @@ -137,9 +137,13 @@ function settings.project_local_settings(section, scope) local settings_path = settings_dir .. '/' .. settings_name lspc:log('settings: found project specific settings at "' .. settings_path) - local ls_settings = read_settings(settings_path)[section] or {} + local ls_settings = read_settings(settings_path) or {} + if section then + ls_settings = ls_settings[section] or {} + end -- The settings found later have less priority than the settings found earlier merged_settings = util.table.merge(ls_settings, merged_settings) + end end |
