 (add-hook 'js2-mode-hook
      (lambda ()
        (setq js2-basic-offset 2)))
+
+;;;;;;;;
+;; lsp-mode
+;;;;;;;;
+(require 'lsp-mode)
+(setq lsp-clients-clangd-executable "/usr/bin/clangd-7")
+(setq lsp-prefer-flymake nil)
+(add-hook 'c-mode-hook #'lsp)
+(add-hook 'c++-mode-hook
+          ;; # apt-get install clang-tools-7 # libclang-devのメジャーバージョンと合わせる
+          ;; C++ではclang-formatが必要
+          #'lsp)
+
+;;;;;;;;
+;; lsp-ui
+;;;;;;;;
+(require 'lsp-ui)
 
 ;;;;;;;;
 ;; navi2ch

 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(flymake-errline ((t (:underline "red"))))
 '(flymake-warnline ((t (:underline "yellow")))))

(provide 'init)
;;; init.el ends here

          company-css
          company-eclim
          company-semantic
          company-lsp
          company-clang
          company-xcode
          company-cmake
          company-capf
          company-files
          (company-dabbrev-code company-etags company-keywords company-dict)
          company-oddmuse
          company-dabbrev)))

