<commit_before>;;; init-lsp.el --- init file for LSP

;;; Commentary:

;; I chose lsp-mode over eglot because it seems to be more actively developed.

;;; Code:

(use-package lsp-mode
  ;; https://github.com/emacs-lsp/lsp-mode/pull/2109
  :straight (:host github
             :repo "emacs-lsp/lsp-mode"
             :branch "master"
             :files (:defaults "clients/*.el"))
  :commands (lsp lsp-deferred lsp-register-client)
  :init (setq lsp-keymap-prefix "C-c l")
  :bind
  ("<f2>" . lsp-rename)
  :config
  (setq lsp-prefer-flymake nil))

(use-package lsp-ui
  :commands lsp-ui-mode
  :defer t
  :hook
  (lsp-mode . lsp-ui-mode)
  :bind
  (:map lsp-ui-mode-map
        ([remap xref-find-definitions] . lsp-ui-peek-find-definitions)
        ([remap xref-find-references] . lsp-ui-peek-find-references))
  :custom
  (lsp-ui-doc-use-webkit t)
  :custom-face
  (lsp-ui-doc-background ((t :background "#2e3440")))
  (lsp-ui-peek-header ((t :foreground "#d8dee9" :background "#2e3440")))
  (lsp-ui-peek-highlight ((t :foreground "#2e3440" :background "#88c0d0")))
  (lsp-ui-peek-selection ((t :foreground "#d8dee9" :background "#4c566a"))))

(use-package company-lsp
  :commands company-lsp
  :config
  (push 'company-lsp company-backends))

(use-package helm-lsp
  :commands helm-lsp-workspace-symbol)

(use-package lsp-treemacs
  :commands lsp-treemacs-errors-list)

(provide 'init-lsp)

;;; init-lsp.el ends here
<commit_msg>Remove github link for emacs-lsp<commit_after>;;; init-lsp.el --- init file for LSP

;;; Commentary:

;; I chose lsp-mode over eglot because it seems to be more actively developed.

;;; Code:

(use-package lsp-mode
  :commands (lsp lsp-deferred lsp-register-client)
  :init (setq lsp-keymap-prefix "C-c l")
  :bind
  ("<f2>" . lsp-rename)
  :config
  (setq lsp-prefer-flymake nil))

(use-package lsp-ui
  :commands lsp-ui-mode
  :defer t
  :hook
  (lsp-mode . lsp-ui-mode)
  :bind
  (:map lsp-ui-mode-map
        ([remap xref-find-definitions] . lsp-ui-peek-find-definitions)
        ([remap xref-find-references] . lsp-ui-peek-find-references))
  :custom
  (lsp-ui-doc-use-webkit t)
  :custom-face
  (lsp-ui-doc-background ((t :background "#2e3440")))
  (lsp-ui-peek-header ((t :foreground "#d8dee9" :background "#2e3440")))
  (lsp-ui-peek-highlight ((t :foreground "#2e3440" :background "#88c0d0")))
  (lsp-ui-peek-selection ((t :foreground "#d8dee9" :background "#4c566a"))))

(use-package company-lsp
  :commands company-lsp
  :config
  (push 'company-lsp company-backends))

(use-package helm-lsp
  :commands helm-lsp-workspace-symbol)

(use-package lsp-treemacs
  :commands lsp-treemacs-errors-list)

(provide 'init-lsp)

;;; init-lsp.el ends here

{'fraction_non_alphanumeric': 0.16865227103499628, 'fraction_numerical': 0.022338049143708117, 'mean_word_length': 3.42668863261944, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6797123', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1100, 'n_words': 223}