feat: add editor component
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
[package]
|
||||
name = "gpui-native-editor"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
description = "Read-only code surfaces for gpui applications, one cargo feature per language grammar"
|
||||
|
||||
[dependencies]
|
||||
gpui = { workspace = true }
|
||||
gpui-native-core = { workspace = true, optional = true }
|
||||
gpui-native-theme = { workspace = true }
|
||||
gpui-native-utils = { workspace = true }
|
||||
tree-sitter = "0.25"
|
||||
tree-sitter-rust = { version = "0.24", optional = true }
|
||||
tree-sitter-typescript = { version = "0.23", optional = true }
|
||||
tree-sitter-javascript = { version = "0.23", optional = true }
|
||||
tree-sitter-python = { version = "0.23", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
gpui = { workspace = true, features = ["test-support"] }
|
||||
|
||||
[features]
|
||||
default = ["full"]
|
||||
full = [
|
||||
"code_view",
|
||||
"rust",
|
||||
"typescript",
|
||||
"javascript",
|
||||
"python",
|
||||
]
|
||||
code_view = [
|
||||
"dep:gpui-native-core",
|
||||
"gpui-native-core/scroll_area",
|
||||
"gpui-native-core/scrollbar",
|
||||
]
|
||||
rust = ["dep:tree-sitter-rust"]
|
||||
typescript = ["dep:tree-sitter-typescript"]
|
||||
javascript = ["dep:tree-sitter-javascript"]
|
||||
python = ["dep:tree-sitter-python"]
|
||||
Reference in New Issue
Block a user