 (defun project-root (project)
   (car (project-roots project)))
 (add-hook 'go-mode-hook 'eglot-ensure)
+(add-hook 'typescript-mode-hook 'eglot-ensure)
 
 ;;; Text Editing visual
 ;; disable blinking cursor



;;; Functions
(defun my-lookup()
  "Lookup the symbol under cursor."
  (interactive)
  (if (bound-and-true-p lsp-mode)
      (lsp-describe-thing-at-point)
    (describe-symbol (symbol-at-point))))
;; Custom keybindings
;; Functions
(defun split-right ()
  "Split windows right and move to the new split"
  (interactive)
  (split-window-right)
  (windmove-right))
(defun split-down ()
  "Split windows down and move to the new split"
  (interactive)
  (split-window-below)
  (windmove-down))


;; Toggle Window Maximize

(global-set-key (kbd "C-n J") 'evil-window-move-very-bottom)
(global-set-key (kbd "C-n k") 'evil-window-up)
(global-set-key (kbd "C-n K") 'evil-window-move-very-top)
(global-set-key (kbd "C-n %") 'ab/window-split-right)
(global-set-key (kbd "C-n \"") 'ab/window-split-down)
(global-set-key (kbd "C-n x") 'evil-window-delete)
(global-set-key (kbd "C-n b") 'persp-ivy-switch-buffer)
(global-set-key (kbd "C-n :") 'counsel-M-x)
(global-set-key (kbd "C-n s") 'persp-switch)
(global-set-key (kbd "C-n c") 'ab/workspace-new)
(global-set-key (kbd "C-n $") 'persp-rename)
(global-set-key (kbd "C-n n") 'persp-next)
(global-set-key (kbd "C-n p") 'persp-prev)
(global-set-key (kbd "C-n X") 'persp-kill)
(global-set-key (kbd "C-p") 'counsel-projectile-find-file)


;;; auto tail log files
