Add linter support

This commit is contained in:
Jesús 2022-01-15 13:43:57 -05:00
parent a066539b7f
commit 46552ee63d
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766
4 changed files with 28 additions and 2 deletions

2
.gitignore vendored
View File

@ -5,6 +5,8 @@
.cache/ .cache/
.litable-lists.el .litable-lists.el
.org-id-locations .org-id-locations
.lsp-session-v1
.dap-breakpoints
.session .session
.smex-items .smex-items
*.eld *.eld

View File

@ -9,7 +9,7 @@
'(anzu-replace-to-string-separator " => ") '(anzu-replace-to-string-separator " => ")
'(anzu-search-threshold 1000) '(anzu-search-threshold 1000)
'(package-selected-packages '(package-selected-packages
'(dotenv-mode web-mode vue-mode company-php php-mode php-refactor-mode markdown-mode js2-refactor ivy-hydra hydra log4j-mode dashboard neotree highlight-indent-guides doom-modeline which-key doom-themes yaml-mode whitespace-cleanup-mode use-package undo-tree smartparens shrink-path sass-mode rjsx-mode rainbow-mode py-autopep8 projectile pkgbuild-mode pip-requirements nginx-mode lua-mode json-mode ivy-rich go-mode git-timemachine git-modes git-gutter-fringe flycheck eslintd-fix emmet-mode elpy editorconfig dokuwiki-mode dockerfile-mode diminish crystal-mode counsel company-quickhelp apache-mode anzu all-the-icons))) '(tide dotenv-mode web-mode vue-mode company-php php-mode php-refactor-mode markdown-mode js2-refactor ivy-hydra hydra log4j-mode dashboard neotree highlight-indent-guides doom-modeline which-key doom-themes yaml-mode whitespace-cleanup-mode use-package undo-tree smartparens shrink-path sass-mode rjsx-mode rainbow-mode py-autopep8 projectile pkgbuild-mode pip-requirements nginx-mode lua-mode json-mode ivy-rich go-mode git-timemachine git-modes git-gutter-fringe flycheck eslintd-fix emmet-mode elpy editorconfig dokuwiki-mode dockerfile-mode diminish crystal-mode counsel company-quickhelp apache-mode anzu all-the-icons)))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.

View File

@ -116,7 +116,8 @@
(require 'init-web-mode) (require 'init-web-mode)
(require 'init-dotenv) (require 'init-dotenv)
(require 'init-dockerfile) (require 'init-dockerfile)
(require 'init-dokuwiki)) (require 'init-dokuwiki)
(require 'init-linter))
;;; Custom variables ;;; Custom variables
(setq custom-file (expand-file-name "custom.el" user-emacs-directory)) (setq custom-file (expand-file-name "custom.el" user-emacs-directory))

23
modules/init-linter.el Normal file
View File

@ -0,0 +1,23 @@
;;; init-linter.el --- .Emacs Configuration -*- lexical-binding: t -*-
;;; Commentary:
;;
;;; Code:
;;---------------------------
;; Lsp Mode
;;---------------------------
(use-package lsp-mode
:config
(add-hook 'lsp-mode-hook #'lsp-enable-which-key-integration)
(add-hook 'prog-mode-hook #'lsp))
(use-package lsp-treemacs
:config
(lsp-treemacs-sync-mode 1))
(use-package dap-mode)
(provide 'init-linter)
;; End:
;;; init-linter.el ends here