diff options
| author | Julia DeMille <8127111+judemille@users.noreply.github.com> | 2024-01-17 18:49:04 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-18 02:49:04 +0200 |
| commit | 12fbbff7e91b1d07498f0574505e9d48baa9d7bf (patch) | |
| tree | 11017014ac43e2a86dd0faf7f3d34f0163329466 /lua | |
| parent | 2730051a3ff2eaf34e392f2304bab217d884fc30 (diff) | |
| download | neovim-tasks-master.tar.gz neovim-tasks-master.zip | |
dap_open_command is a function, and Neovim gets *very* angry when asked
to encode a command in JSON. I don't know if it silently allowed this
before or what, but it's causing issues for me.
Signed-off-by: Julia DeMille <me@jdemille.com>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/tasks/project_config.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/tasks/project_config.lua b/lua/tasks/project_config.lua index b3891a3..f0ca017 100644 --- a/lua/tasks/project_config.lua +++ b/lua/tasks/project_config.lua | |||
| @@ -23,7 +23,10 @@ end | |||
| 23 | --- Writes all values as JSON to disk. | 23 | --- Writes all values as JSON to disk. |
| 24 | function ProjectConfig:write() | 24 | function ProjectConfig:write() |
| 25 | local params_file = Path:new(config.params_file) | 25 | local params_file = Path:new(config.params_file) |
| 26 | local tmp_dap_open_command = self.dap_open_command | ||
| 27 | self.dap_open_command = nil | ||
| 26 | params_file:write(vim.json.encode(self), 'w') | 28 | params_file:write(vim.json.encode(self), 'w') |
| 29 | self.dap_open_command = tmp_dap_open_command | ||
| 27 | end | 30 | end |
| 28 | 31 | ||
| 29 | return ProjectConfig | 32 | return ProjectConfig |
