在lsp-treemacs 源代码中 找到如下配置.
(defvar lsp-treemacs-symbols-position-params `((side . ,treemacs-position) (slot . 2) (window-width . ,treemacs-width)))
treemacs-position 定义在 treemacs中
(defcustom treemacs-position 'left "Position of treemacs buffer.
Valid values are
- left,
- right." :type '(choice (const left) (const right)) :group 'treemacs)
修改选项:
(setq lsp-treemacs-symbols-position-params `((side . 'right) (slot . 1) (window-width . 35))) 执行: ((side quote right) (slot . 1) (window-width . 35))
打开时候报错:
display-buffer-in-side-window: Invalid side 'right specified
请教下 如何设置 lsp-treemacs-symbols-position-params 的值.