Commit 9f6823a2 authored by marc0s's avatar marc0s

feat: update js2-mode and lsp-mode stuff

parent 5a82b8ec
......@@ -226,7 +226,6 @@ work here..."
(defun marc0s/fix-js2-indent ()
"Set `tab-width' when loading js2-mode."
(setq tab-width 4)
;; (setq-local js-indent-level 4)
(setq fill-column 100))
(defun marc0s/js2-flycheck ()
"Configure flycheck with eslint."
......@@ -235,10 +234,6 @@ work here..."
"Open a browser on the MDN page for SEARCHSTRING."
(interactive (list (read-string "Search: " (thing-at-point 'symbol))))
(browse-url (format "https://developer.mozilla.org/en-US/search?q=%s&topic=js" searchString)))
(defun marc0s/js2-lsp ()
"Run lsp when entering js2-mode."
(lsp))
:init
(setq-local compile-command "gulp")
:config
......@@ -322,7 +317,8 @@ work here..."
:ensure t
:commands lsp
:init
(setq lsp-auto-configure t))
(setq lsp-auto-configure t)
(add-hook 'js2-mode-hook #'lsp))
(use-package lsp-ui
:ensure t
:commands lsp-ui-mode
......@@ -330,7 +326,8 @@ work here..."
(add-hook 'lsp-mode-hook 'lsp-ui-mode))
(use-package company-lsp
:ensure t
:commands company-lsp)
:init
(push 'company-lsp company-backends))
(use-package lua-mode
:ensure t
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment