diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-23 15:58:07 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-23 15:59:24 +0900 |
| commit | 9d774906860bea4105a054095d843d8d656b569e (patch) | |
| tree | 5e4cf9e40b501a99e55d9d35b6d69fc166eacf6e /.config/nvim/after/lsp/efm.lua | |
| parent | bf63936430497e843a26888924095ccb6747b0b9 (diff) | |
| download | dotfiles-9d774906860bea4105a054095d843d8d656b569e.tar.gz dotfiles-9d774906860bea4105a054095d843d8d656b569e.tar.zst dotfiles-9d774906860bea4105a054095d843d8d656b569e.zip | |
nvim/lsp: update LSP settings for Nvim 0.11 changes
Diffstat (limited to '.config/nvim/after/lsp/efm.lua')
| -rw-r--r-- | .config/nvim/after/lsp/efm.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.config/nvim/after/lsp/efm.lua b/.config/nvim/after/lsp/efm.lua new file mode 100644 index 0000000..c8952da --- /dev/null +++ b/.config/nvim/after/lsp/efm.lua @@ -0,0 +1,32 @@ +local biome_conf = { + rootMarkers = { 'biome.json' }, + formatCommand = 'node_modules/.bin/biome format --stdin-file-path "${INPUT}"', + formatStdin = true, +} + +return { + cmd = { 'efm-langserver' }, + filetypes = { + 'json', + 'javascript', 'javascriptreact', 'javascript.jsx', + 'typescript', 'typescriptreact', 'typescript.jsx', + }, + root_markers = { '.git' }, + init_options = { documentFormatting = true }, + settings = { + languages = { + json = { + { + formatCommand = 'reparojson -q', + formatStdin = true, + }, + }, + javascript = { biome_conf }, + javascriptreact = { biome_conf }, + ['javascript.jsx'] = { biome_conf }, + typescript = { biome_conf }, + typescriptreact = { biome_conf }, + ['typescript.jsx'] = { biome_conf }, + }, + }, +} |
