aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/nvim/after/lsp
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-23 15:58:07 +0900
committernsfisis <nsfisis@gmail.com>2026-02-23 15:59:24 +0900
commit9d774906860bea4105a054095d843d8d656b569e (patch)
tree5e4cf9e40b501a99e55d9d35b6d69fc166eacf6e /.config/nvim/after/lsp
parentbf63936430497e843a26888924095ccb6747b0b9 (diff)
downloaddotfiles-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')
-rw-r--r--.config/nvim/after/lsp/efm.lua32
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 },
+ },
+ },
+}