I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.4 KiB

4 years ago
  1. (use-package lsp-mode
  2. :custom (gc-cons-threshold 1000000000)
  3. (lsp-idle-delay 0.500))
  4. (use-package lsp-ui
  5. :custom (lsp-ui-doc-position 'at-point)
  6. (lsp-ui-doc-delay 0.500))
  7. (use-package projectile
  8. :config
  9. (setq projectile-project-search-path '("~/.local/source"))
  10. (projectile-mode))
  11. (use-package password-store
  12. :custom (password-store-dir dotfiles/passwords))
  13. (dotfiles/leader
  14. "p" '(:ignore t :which-key "Passwords")
  15. "pp" '(password-store-copy :which-key "Copy")
  16. "pr" '(password-store-rename :which-key "Rename")
  17. "pg" '(password-store-generate :which-key "Generate"))
  18. (use-package dap-mode)
  19. (use-package company)
  20. (use-package company-lsp)
  21. (use-package ccls
  22. :hook ((c-mode c++-mode objc-mode cuda-mode) .
  23. (lambda () (require 'ccls) (lsp))))
  24. (use-package python-mode
  25. :hook (python-mode . lsp)
  26. :config (require 'dap-python)
  27. :custom (python-shell-interpreter "python3") ;; Required if "python" is not python 3.
  28. (dap-python-executable "python3") ;; Same as above.
  29. (dap-python-debugger 'debugpy))
  30. (setenv "GOPATH" (concat (getenv "HOME") "/.go/"))
  31. (setenv "PATH" (concat (getenv "GOPATH") "bin:" (getenv "PATH")))
  32. (use-package go-mode
  33. :hook (go-mode . lsp))
  34. (defun dotfiles/go-hook ()
  35. (add-hook 'before-save-hook #'lsp-format-buffer t t)
  36. (add-hook 'before-save-hook #'lsp-organize-imports t t))
  37. (add-hook 'go-mode-hook #'dotfiles/go-hook)