Skip to content

Commit

Permalink
chore: fix compat diagnostic (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb authored Oct 31, 2023
1 parent e3a543b commit bf71e4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/rustaceanvim/compat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ M.system = vim.system
---@cast cmd string[]
---@cast opts SystemOpts | nil
---@cast on_exit fun(sc: vim.SystemCompleted) | nil
---@diagnostic disable-next-line: undefined-field
if opts and opts.cwd then
local shell = require('rustaceanvim.shell')
---@diagnostic disable-next-line: undefined-field
cmd = shell.chain_commands { 'cd ' .. opts.cwd, table.concat(cmd, ' ') }
---@cast cmd string
end
Expand Down

0 comments on commit bf71e4a

Please sign in to comment.