We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0449381 commit ff0ba7fCopy full SHA for ff0ba7f
2 files changed
lua/opencode/config.lua
@@ -149,7 +149,7 @@ M.defaults = {
149
enabled = false,
150
},
151
diagnostics = {
152
- enabled = false,
+ enabled = true,
153
info = false,
154
warning = true,
155
error = true,
lua/opencode/context.lua
@@ -71,7 +71,9 @@ function M.get_diagnostics(buf)
71
return nil
72
end
73
74
- local diagnostic_conf = config.context and state.current_context_config.diagnostics or config.context.diagnostics
+ local current_conf = vim.tbl_get(state, 'current_context_config', 'diagnostics') or {}
75
+ local global_conf = vim.tbl_get(config, 'context', 'diagnostics') or {}
76
+ local diagnostic_conf = vim.tbl_deep_extend('force', global_conf, current_conf) or {}
77
78
local severity_levels = {}
79
if diagnostic_conf.error then
0 commit comments