mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-17 12:42:17 +00:00
parent
b24a4e897e
commit
092bc674a5
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ function View(props: { api: TuiPluginApi }) {
|
|||
const [open, setOpen] = createSignal(true)
|
||||
const theme = () => props.api.theme.current
|
||||
const list = createMemo(() => props.api.state.lsp())
|
||||
const off = createMemo(() => props.api.state.config.lsp === false)
|
||||
const off = createMemo(() => !props.api.state.config.lsp)
|
||||
|
||||
return (
|
||||
<box>
|
||||
|
|
@ -23,7 +23,7 @@ function View(props: { api: TuiPluginApi }) {
|
|||
<Show when={list().length <= 2 || open()}>
|
||||
<Show when={list().length === 0}>
|
||||
<text fg={theme().textMuted}>
|
||||
{off() ? "LSPs have been disabled in settings" : "LSPs will activate as files are read"}
|
||||
{off() ? "LSPs are disabled" : "LSPs will activate as files are read"}
|
||||
</text>
|
||||
</Show>
|
||||
<For each={list()}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue