GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    mretka​ :neocat_comfy_happy: (mretka@infosec.exchange)'s status on Wednesday, 20-Nov-2024 11:55:05 JSTmretka​ :neocat_comfy_happy:mretka​ :neocat_comfy_happy:

    For #emacs #frontend users who use web-mode with lsp-mode. Here is how you fix indentation when working with Vue/React/Svelte files:

    (add-hook 'web-mode-hook
    (lambda ()
    (setq-local lsp-enable-indentation nil)))

    This disables the LSP indentation, which overrides web-mode's indentation configuration. Now web-mode should indent things with 2 spaces with the configuration below:

    (setq web-mode-markup-indent-offset 2
    web-mode-css-indent-offset 2
    web-mode-code-indent-offset 2
    web-mode-script-padding 2
    web-mode-style-padding 2)

    In conversationabout 6 months ago from infosec.exchangepermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.