用 lsp 时 gd 跳转到函数定义处,默认光标都会在屏幕中间,怎么配置它的偏移?让光标出现在屏幕的三分之二位置
2 条回复 • 2025-03-18 15:15:35 +08:00
|
1
pooorguy 2025 年 3 月 18 日 via Android
vim.lsp.buf.definition 后面跟个 nvim_win_set_cursor()
|
推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide