dotfiles/emacs/.emacs.d/modules/jg-dev.el

101 lines
2.2 KiB
EmacsLisp
Raw Normal View History

2024-05-31 15:32:03 +00:00
; -*- lexical-binding: t; -*-
;;; Code:
2024-09-13 06:53:39 +00:00
(setq-default indent-tabs-mode nil)
(use-package flycheck
:init
(setq flycheck-python-flake8-executable "flake8")
(setq flycheck-python-pylint-executable "pylint")
: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-diagnostic-package :none)
2024-10-07 08:17:47 +00:00
(setq lsp-keymap-prefix "C-c l") ;; Or 'C-l', 's-l
2024-06-07 09:38:09 +00:00
:config
(lsp-enable-which-key-integration t)
)
(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
2024-10-07 08:17:47 +00:00
(lsp-ui-doc-position 'bottom)
:commands lsp-ui-mode)
2024-06-07 09:38:09 +00:00
(use-package lsp-treemacs
2024-10-07 08:17:47 +00:00
:after lsp
:commands lsp-treemacs-errors-list
)
2024-06-07 09:38:09 +00:00
(use-package lsp-ivy
2024-10-07 08:17:47 +00:00
:after lsp
:commands lsp-ivy-workspace-symbol)
2024-06-07 09:38:09 +00:00
2024-09-13 06:53:39 +00:00
(use-package cmake-mode)
2024-06-07 09:38:09 +00:00
(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-07 09:38:09 +00:00
2024-10-07 08:17:47 +00:00
(use-package typescript-mode
:hook (typescript-mode . lsp-deferred)
)
2024-09-13 06:53:39 +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
)
(use-package yaml-mode
:ensure t)
2024-05-31 15:32:03 +00:00
(provide 'jg-dev)
;;; jg-dev.el ends here