We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It could be nice to allow a repl_definition to also have a 'cwd' function:
typescript = { command = { "ts-node" }, cwd = function(current_bufnr) local filename = vim.api.nvim_buf_get_name(current_bufnr) local root = require("lspconfig.util").root_pattern("node_modules", "package.json", "tsconfig.json", ".git")(filename) return root end, open = ".editor\n", close = "\04" },
I was able to get this to work by adding the following to the lowlevel.create_repl_on_current_window function:
lowlevel.create_repl_on_current_window
if type(repl.cwd) == 'string' then opts.cwd = repl.cwd elseif type(repl.cwd) == 'function' then opts.cwd = repl.cwd(current_bufnr) end
The text was updated successfully, but these errors were encountered:
That's a wonderful suggestion. I'll look into it when I have time. :)
Sorry, something went wrong.
No branches or pull requests
It could be nice to allow a repl_definition to also have a 'cwd' function:
I was able to get this to work by adding the following to the
lowlevel.create_repl_on_current_window
function:The text was updated successfully, but these errors were encountered: