Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(snacks): addsnacks_win_opts for user to override opts ofSnacks.terminal.open()#65

New issue

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
qw457812 wants to merge1 commit intocoder:main
base:main
Choose a base branch
Loading
fromqw457812:feat_snacks_win_opts

Conversation

qw457812
Copy link

@qw457812qw457812 commentedJun 24, 2025
edited
Loading

Case:

  • Floating window.
  • Toggle to show/hide the snacks terminal.
localtoggle_key="<C-,>"return {  {"coder/claudecode.nvim",dependencies= {"folke/snacks.nvim"},keys= {      {toggle_key,"<cmd>ClaudeCodeFocus<cr>",desc="Claude Code",mode= {"n","x"} },    },opts= {terminal= {---@module"snacks"---@typesnacks.win.Config|{}snacks_win_opts= {position="float",width=0.9,height=0.9,keys= {claude_hide= {toggle_key,function(self)self:hide()end,mode="t",desc="Hide",            },          },        },      },    },  },}

…cks.terminal.open()`Case:- Floating window.- Toggle to show/hide the snacks terminal.```lualocal toggle_key = "<C-,>"return {  {    "coder/claudecode.nvim",    keys = {      { toggle_key, "<cmd>ClaudeCodeFocus<cr>", desc = "Claude Code", mode = { "n", "x" } },    },    opts = {      terminal = {        ---@module "snacks"        ---@type snacks.win.Config|{}        snacks_win_opts = {          position = "float",          width = 0.9,          height = 0.9,          keys = {            claude_hide = {              toggle_key,              function(self)                self:hide()              end,              mode = "t",              desc = "Hide",            },          },        },      },    },  },}```
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@qw457812

[8]ページ先頭

©2009-2025 Movatter.jp