关于doom-modeline和tramp的问题

在使用eshell cd到远程服务器后,C-x C-f sudo:: 访问文件会卡死,debug后发现是doom-modeline的问题,关闭之后不会再卡死,在github上搜了一下没找到准确的解决方案,请教一下在不手动关闭doom-modeline的情况下是否有相应的配置应对这个问题? 目前我的doom-modeline相关配置如下,init里是参考github上一个配置,但是没能解决问题:

————————————————————

已经找到问题,tramp访问远程服务器时,counsel-find-file会和doom-modeline冲突导致卡死。

But, why?

试了下,没法复现,建议找最小配置提 issue

(use-package doom-modeline
  :ensure t
  :hook (emacs-startup . doom-modeline-mode)
  :config
  (setq
   ;; inhibit-compacting-font-caches t
   ;; doom-modeline-height 1
   doom-modeline-buffer-file-name-style 'auto
   ;; doom-modeline-icon nil
   ;; doom-modeline-project-detection 'project
   )

ps tramp 配置:

(use-package tramp
  :defer t
  :config
  (setq remote-file-name-inhibit-cache nil
        tramp-default-method "ssh"
        tramp-default-remote-shell "/bin/zsh"
        tramp-verbose 1
        tramp-use-ssh-controlmaster-options nil
        tramp-ssh-controlmaster-options (concat
                                         "-o ControlPath='tramp.%%r@%%h:%%p' "
                                         "-o ControlMaster=auto -o ControlPersist=yes")
        vc-handled-backends '(SVN Git))
  (add-to-list 'tramp-remote-path 'tramp-own-remote-path)
  (add-hook 'find-file-hook
            (lambda ()
              (when (file-remote-p default-directory)
                (set (make-local-variable 'file-precious-flag) t)))))

又调试了一下,发现swiper和doom-modeline共存时会出现卡死的问题,禁用doom-modeline或swiper都可以解决问题,更具体是swiper中:bind部分会和doom-modeline冲突导致卡死,请问我这部分配置存在问题吗?

找到问题了,这句注释掉就好了,swiper默认配置里counsel-find-file替代了原生的。

("C-x C-f" . counsel-find-file)

:joy: :joy: :joy: