nwm
347
Stars
5
Forks
6
Watchers
1
Open Issues
MIT
许可证
Lua
语言
2023-12-15
创建时间
2026-11-06
最近更新
项目能做什么
运行在 Neovim 内部的图形化窗口管理器。
来源:基于仓库元数据
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# NXWM
**N**eovim **X**11 **W**indow **M**anager allows you to use x11 windows as if they were buffers.
When entering a x-window-buffer, you'll need to start insert-mode to focus the x-window (unless some configurations are set to do this automatically).
## Requirements
+ `libx11`
+ `libxfixes` (almost always installed if libx11 is installed)
+ `glibc` (or most other standard C libraries)
+ Terminal supporting `TIOCGWINSZ`
+ Recommended terminal is `kitty`
+ Run `:lua= require'nxwm'.term_supported()` to check
+ NOTE: some terminals may support `TIOCGWINSZ` while still not working (like `neovim-qt`)
## Installation
Use whichever package manager you like.\
It is recommended to lock/pin the plugin to one version/branch because of changes.
- lazy
```lua
{'altermo/nwm',branch='x11'},
```
- packer
```lua
use {'altermo/nwm',branch='x11'},
```
## Configuration
Using `require("nxwm").setup({})` is **not required**, it is only there if you want to change the default config.
```lua
{
--What happens when a new x-window is created
on_win_open=function (buf,xwin)
vim.cmd.vsplit()
vim.api.nvim_set_current_buf(buf)
end,
--Configuration to pass to window
--`conf` is global config
on_win_get_conf=function (conf,xwin) return conf end,
--How to handle when multiple windows in the same tabpage has the x-window-buffer open
on_multiple_win_open=function (vwins,buf,xwin)
for k,vwin in ipairs(vwins) do
if k~=1 then
local scratchbuf=vim.api.nvim_create_buf(false,true)
vim.bo[scratchbuf].bufhidden='wipe'
vim.api.nvim_win_set_buf(vwin,scratchbuf)
end
end
end,
--Whether to be more verbose
verbal=false,
--Whether to show float windows above x-windows (depending on z-index)
floatover=true,
--Map to unfocus a window (multiple key mappings is not (yet) supported)
unfocus_map='<A-F4>',
--Create your own mappings
--IMPORTANT: the x-window needs to be focused for such mappings to work
maps={
--{'<C-A-del>',function () vim.cmd'quitall!' end},
--Or you could also have lhs as a table
--{{mods={'control','mod1'},key='Delete'},function () vim.cmd'quitall!' end},
},
--Window-opt: auto focus x-window when entering x-window-buffer
autofocus=false,
--Window-opt: try-delete x-window if no vim-window shows buffer (similar to `bufhidden=wipe`)
delhidden=true,
--Window-opt: when click on x-window, goto that buffer (may not focus x-window)
clickgoto=true,
--Window-opt: offset the window this many x pixels (useful if terminal has padding)
xoffset=0,
--Window-opt: offset the window this many y pixels (useful if terminal has padding)
yoffset=0,
}
```
## Usage
<!--
local terminals={
kitty=[[kitty -c NONE -o placement_strategy=top-left -e nvim -c 'lua require("nxwm").start()']],
alacritty=[[alacritty --config-file /dev/null -e nvim -c
阅读完整原文
商业机会分析 规则生成(AI 未配置)
综合评分 50.6 分。该项目在“个人可实施性”维度得 35 分,“付费可能性”维度得 40.0 分,差异化空间 75.0 分(评分依据见评分卡)。
将 nwm 改造为垂直场景 SaaS
| 产品构想 | 保留核心能力,针对某一类用户(如某行业团队)做托管版,收取月费。 |
| 目标用户 | 有该需求的中小团队 / 独立站长 |
| 难度/周期 | 较高 · 2~4 周(MVP) |
| 收费模式 | 订阅制(如 ¥29~99/月) |
| 竞争风险 | 需验证付费意愿;注意许可证合规 |
| 依据 | 数据支持的判断:许可证与关键词显示存在商用与付费场景 |
面向细分需求的二次开发产品
| 产品构想 | 基于 nwm 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。 |
| 目标用户 | 该细分场景用户 |
| 难度/周期 | 中 · 2~6 周 |
| 收费模式 | 买断制 / 订阅制 / 广告 |
| 竞争风险 | 细分需求规模需验证 |
| 依据 | AI 推测:基于项目主题标签的判断 |
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| neovim/neovim | 中文介绍暂未生成 Vim-fork focused on extensibility and usability |
103,602 | Vim Script |
| coolsnowwolf/lede | 中文介绍暂未生成 Lean's LEDE source |
31,618 | C |
| NvChad/NvChad | 中文介绍暂未生成 Blazing fast Neovim framework providing solid defaults and a |
28,544 | Lua |
| nvim-telescope/telescope.nvim | 中文介绍暂未生成 Find, Filter, Preview, Pick. All lua, all the time. |
19,859 | Lua |
| cocos2d/cocos2d-x | 中文介绍暂未生成 Cocos2d-x is a suite of open-source, cross-platform, game-de |
19,247 | C++ |
| LunarVim/LunarVim | 中文介绍暂未生成 🌙 LunarVim is an IDE layer for Neovim. Completely free and c |
19,245 | Lua |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2023-12-15,近 30 天仍在推送 |
| 社区活跃 | Star 347 / Fork 5 / Issue 1(数据支持,可自行核实) |
| 许可证 | MIT |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/altermo/nwm.git cd nwm # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。