summaryrefslogtreecommitdiff
path: root/.doom.d/config.el
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2020-08-24 11:27:47 -0300
committerRoger Gonzalez <roger@rogs.me>2020-08-24 11:27:47 -0300
commitc071785b8f7f88073574b1e38cd9a314a87a36c3 (patch)
treee1b156895add34142d810e45447c8390743bc8eb /.doom.d/config.el
parent694384e0e7165b358cd0a7b421df83e6ec29f272 (diff)
Added LSP to eslint, for JS files
Diffstat (limited to '.doom.d/config.el')
-rw-r--r--.doom.d/config.el16
1 files changed, 12 insertions, 4 deletions
diff --git a/.doom.d/config.el b/.doom.d/config.el
index 10023ba3..bad3aeee 100644
--- a/.doom.d/config.el
+++ b/.doom.d/config.el
@@ -25,13 +25,13 @@
;; They all accept either a font-spec, font string ("Input Mono-12"), or xlfd
;; font string. You generally only need these two:
;; test
-(setq doom-font (font-spec :family "mononoki Nerd Font Mono" :size 30)
+(setq doom-font (font-spec :family "Source Code Pro Medium" :size 15)
doom-variable-pitch-font (font-spec :family "sans"))
;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. These are the defaults.
-(setq doom-theme 'doom-oceanic-next)
+(setq doom-theme 'doom-material) 4
;; If you intend to use org, it is recommended you change this!
(setq org-directory "~/org")
@@ -148,8 +148,8 @@
(setq-default tab-width 2)
(setq js-highlight-level 3)
(setq auto-indent-indent-style 'aggressive)
-(require 'aggressive-indent)
-(global-aggressive-indent-mode 1)
+;; (require 'aggressive-indent)
+;; (global-aggressive-indent-mode 1)
;; Org Mode
(after! org
@@ -246,3 +246,11 @@
;; Autofill mode
(add-hook 'text-mode-hook 'auto-fill-mode)
(setq-default fill-column 80)
+
+;; LSP eslint config
+(setq lsp-eslint-server-command
+ '("node"
+ "/home/roger/.vscode-oss/extensions/vscode-eslint-release-2.1.5/server/out/eslintServer.js"
+ "--stdio"))
+;; For some reason, eslint disables document hightlight so I'm reenabling it
+(add-hook 'lsp-on-idle-hook 'lsp-document-highlight)