Alexander-Miller / treemacs

GNU General Public License v3.0
2.09k stars 153 forks source link

Clicking doesn't open file in tree half of the time #1102

Closed nonetrix closed 5 months ago

nonetrix commented 5 months ago

For some reason in the tree half of the time my clicks aren't registered, seems random. I have to click repeatedly for a good minute for anything to happen, not sure what is casing it could be my fault but no idea what I am doing wrong exactly and reading though the documentation I couldn't find much in the mouse section

https://github.com/Alexander-Miller/treemacs/assets/45698918/e562b06f-84df-4591-b850-fb169bd41352

Here is my configs, it is in Nix but should be easy to read still since must of it is Lisp anyway


{ config, pkgs, ... }:
let
  global = import ../global-var.nix;
in {
  home-manager.users.${global.username} = { pkgs, ...}: {
    programs.emacs = {
      enable = true;
      package = pkgs.emacs-gtk;
      extraPackages = epkgs: [ 
        epkgs.catppuccin-theme 
        epkgs.evil
        epkgs.magit
        epkgs.beacon
        epkgs.treemacs
        epkgs.treemacs-evil
        epkgs.nix-mode
        epkgs.doom-modeline
        epkgs.linum-relative
        epkgs.vterm
      ];
      extraConfig = ''
        (load-theme 'catppuccin t)
        (set-frame-font "JetBrainsMono Nerd Font" nil t)
        (require 'evil)
        (evil-mode 1)
        ;(beacon-mode 1)
        (require 'doom-modeline)
        (doom-modeline-mode 1)
        (scroll-bar-mode -1)
        (with-eval-after-load 'treemacs
          (define-key treemacs-mode-map [mouse-1] #'treemacs-single-click-expand-action))
        (global-set-key (kbd "<f2>") 'treemacs)

        (add-hook 'prog-mode-hook
          (lambda ()
            (require 'linum-relative)
            (setq linum-relative-backend 'display-line-numbers-mode)
            (linum-relative-mode)
            (setq display-line-numbers-type 'relative)))
      '';
    };
  };
}
nonetrix commented 5 months ago

User error sorry for bothering, should be quick to make issues. But I think the documentation for evil mode could be more clear

(use-package treemacs-evil
          :after treemacs evil)
Alexander-Miller commented 5 months ago

But I think the documentation for evil mode could be more clear

What's missing?