nixd
Loading...
Searching...
No Matches
JsonToNix.h File Reference

Code action for converting JSON to Nix expressions. More...

#include <lspserver/Protocol.h>
#include <llvm/ADT/StringRef.h>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  nixd

Functions

void nixd::addJsonToNixAction (llvm::StringRef Src, const lspserver::Range &Range, const std::string &FileURI, std::vector< lspserver::CodeAction > &Actions)
 Add JSON to Nix conversion action for selected JSON text.

Detailed Description

Code action for converting JSON to Nix expressions.

Provides a selection-based code action that converts valid JSON text to equivalent Nix expression syntax.

Definition in file JsonToNix.h.