2024-05-31 15:32:03 +00:00
|
|
|
; -*- lexical-binding: t; -*-
|
|
|
|
|
2024-06-20 13:20:42 +00:00
|
|
|
(use-package flycheck
|
|
|
|
:config
|
|
|
|
(add-hook 'after-init-hook #'global-flycheck-mode))
|
|
|
|
|
2024-05-31 15:32:03 +00:00
|
|
|
(use-package magit
|
|
|
|
:commands (magit-status magit-get-current-branch)
|
|
|
|
:custom
|
|
|
|
(magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1))
|
|
|
|
|
|
|
|
(use-package rainbow-delimiters
|
|
|
|
:hook (prog-mode . rainbow-delimiters-mode))
|
|
|
|
|
2024-06-07 09:38:09 +00:00
|
|
|
(use-package lsp-mode
|
|
|
|
:commands (lsp lsp-deferred)
|
|
|
|
:init
|
|
|
|
(setq lsp-keymap-prefix "C-c l") ;; Or 'C-l', 's-l'
|
|
|
|
:config
|
|
|
|
(lsp-enable-which-key-integration t)
|
|
|
|
)
|
|
|
|
|
2024-06-20 13:20:42 +00:00
|
|
|
(use-package company
|
|
|
|
:after lsp-mode
|
|
|
|
:hook (lsp-mode . company-mode)
|
|
|
|
:bind (:map company-active-map
|
|
|
|
("<tab>" . company-complete-selection))
|
|
|
|
(:map lsp-mode-map
|
|
|
|
("<tab>" . company-indent-or-complete-common))
|
|
|
|
:custom
|
|
|
|
(company-minimum-prefix-length 1)
|
|
|
|
(company-idle-delay 0.0))
|
|
|
|
|
2024-06-07 09:38:09 +00:00
|
|
|
(use-package lsp-ui
|
|
|
|
:hook (lsp-mode . lsp-ui-mode)
|
|
|
|
:custom
|
|
|
|
(lsp-ui-doc-position 'bottom))
|
|
|
|
|
|
|
|
(use-package lsp-treemacs
|
|
|
|
:after lsp)
|
|
|
|
|
|
|
|
(use-package lsp-ivy
|
|
|
|
:after lsp)
|
|
|
|
|
|
|
|
(use-package dap-mode
|
|
|
|
;; Uncomment the config below if you want all UI panes to be hidden by default!
|
|
|
|
;; :custom
|
|
|
|
;; (lsp-enable-dap-auto-configure nil)
|
|
|
|
;; :config
|
|
|
|
;; (dap-ui-mode 1)
|
|
|
|
:commands dap-debug
|
|
|
|
:config
|
|
|
|
;; Set up Node debugging
|
|
|
|
(require 'dap-python)
|
|
|
|
;; (dap-python-setup) ;; Automatically installs Node debug adapter if needed
|
2024-06-20 13:20:42 +00:00
|
|
|
)
|
2024-06-07 09:38:09 +00:00
|
|
|
|
|
|
|
(use-package python-mode
|
|
|
|
:ensure nil
|
|
|
|
:hook (python-mode . lsp-deferred)
|
|
|
|
:custom
|
|
|
|
;; NOTE: Set these if Python 3 is called "python3" on your system!
|
|
|
|
(python-shell-interpreter "python3")
|
|
|
|
(dap-python-executable "python3")
|
|
|
|
(dap-python-debugger 'debugpy)
|
|
|
|
:config
|
|
|
|
(require 'dap-python))
|
|
|
|
|
|
|
|
(use-package pyvenv
|
|
|
|
:after python-mode
|
|
|
|
:config
|
|
|
|
(pyenv-mode 1))
|
|
|
|
|
|
|
|
(use-package php-mode
|
|
|
|
:ensure t
|
|
|
|
)
|
|
|
|
|
2024-05-31 15:32:03 +00:00
|
|
|
(provide 'jg-dev)
|