Comments (5)
You can take a look at
Line 677 in ac40260
Did you use a centering plugin like olivetti?
from lsp-bridge.
I didn't use `centering plugin like olivetti or writeroom-mode.
If I hack acm-frame-get-popup-position
to this, only change
(cons (+ x window-left)
(+ y window-top offset-y))
to
(cons (+ x window-left 88)
(+ y window-top offset-y))
then the popup menu looks align well...
(defun acm-frame-get-popup-position (frame-popup-point &optional line-bias)
(let* ((edges (window-pixel-edges))
(window-left (+ (nth 0 edges)
;; We need adjust left margin for buffer centering module.
(/ (- (window-pixel-width)
(window-body-width nil t))
2)))
(window-top (nth 1 edges))
(pos (posn-x-y (posn-at-point frame-popup-point)))
(x (car pos))
(y (+ (cdr pos) (* (or line-bias 0) (line-pixel-height))))
(offset-y
;; We need move down to skip tab-line and header-line.
(if (version< emacs-version "27.0")
(window-header-line-height)
(+ (window-tab-line-height)
(window-header-line-height)))))
(cons (+ x window-left 88)
(+ y window-top offset-y))))
from lsp-bridge.
@manateelazycat
What do you think using (window-absolute-pixel-position)
to get the acm-frame-get-popup-position
?
Ref: https://emacs.stackexchange.com/questions/19555/obtain-absolute-pixel-position-of-point
from lsp-bridge.
上面是我的截图, 你的Emacs不支持svg图标渲染, 还是你禁用了图标?
from lsp-bridge.
@eval-exec
I have push new patch 12302c7
This patch will adjust acm menu position follow option acm-enable-icon
and acm-enable-quick-access
.
Thanks for feedback
from lsp-bridge.
Related Issues (20)
- C++自己写的头文件函数名不显示,标准库可以 HOT 6
- Incorrect response to `window/workDoneProgress/create` HOT 2
- paramiko.ssh_exception.PasswordRequiredException: Private key file is encrypted HOT 3
- 补全自动修改窗口位置 HOT 3
- `lsp-bridge` clogging `org-babel-tangle` when enabled HOT 2
- Dynamically set up `lsp-bridge-get-single-lang-server-by-project` HOT 3
- rust remote server 失败,可能是在远程主机没有启动 tabnine HOT 7
- react jsx 中不支持 tailwindcss HOT 3
- semantic-tokens 渲染modifiers时能否支持combine和override混用 HOT 7
- 调用 multi-server-function的时候,如果当前project 没有git init,则会报错,建议设置当前目录作为缺省值并且打印message提醒一下用户 HOT 1
- `lsp-bridge-find-def` with `pyright` takes to stub file (`.pyi`) instead of code (`.py`). HOT 1
- When I open the vue project, ts doesn't recognize my directory HOT 5
- vue模式下跳转定义文件,第二次就失败了 HOT 4
- Document how to use lsp-bridge with python installed via pyenv HOT 1
- An error occurred when I use lap-bridge to edit a file remotely HOT 4
- 使用最新代码(commitid: 1f47c8fb),js 无法补全 HOT 1
- 刚装上,同时出现了 YASnippet 和 lsp 的补全列表,怎么去选中 YASnippet 的候选项了 HOT 2
- Probably a typo in multiserver/qmlls_javascript.json HOT 1
- 一个小问题 HOT 2
- How can I detect if ACM menu is active when hitting Tab? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsp-bridge.