This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # In `dotspacemacs/user-config`: | |
| (add-hook 'elixir-mode-hook | |
| (lambda () | |
| (add-hook 'before-save-hook #'lsp-format-buffer nil t))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # In dotspacemacs/user-config | |
| (add-hook 'vue-mode-hook | |
| (lambda () | |
| (add-hook 'before-save-hook #'prettier-js nil t))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # In `dotspacemacs/layers`: | |
| (elixir :variables | |
| elixir-backend 'lsp | |
| elixir-ls-path "path-to-elixir-ls/release-1.9.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # In `dotspacemacs/layers`: | |
| lsp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (lsp :variables | |
| lsp-enable-file-watchers nil | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # In `dotspacemacs/user-config`: | |
| (add-hook 'elixir-mode-hook | |
| (lambda () | |
| (add-hook 'before-save-hook #'lsp-format-buffer nil t))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # In `dotspacemacs/layers` | |
| (vue :variables | |
| vue-backend 'lsp) | |
| # Depends on whether you already configured this variable in the `javascript` layer | |
| (node :variable node-add-modules-path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Folder for private layers | |
| cd ~/.emacs.d/private | |
| git clone [email protected]:thanhvg/vue.git | |
| # Install the necessary tools manually | |
| # vue-language-server is the language server developed by vetur | |
| npm install -g eslint prettier vue-language-server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ((elixir-mode | |
| (elixir-ls-path . "path-to-elixir-ls/release-1.8.1"))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git clone [email protected]:elixir-lsp/elixir-ls.git | |
| cd elixir-ls | |
| mix compile | |
| # For example, when the target Elixir version is 1.9.0 | |
| mix elixir_ls.release -o release-1.9.0 |