summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloƩ Vulquin <code@toast.bunkerlabs.net>2024-10-04 17:55:00 +0200
committerChloƩ Vulquin <code@toast.bunkerlabs.net>2024-10-04 17:55:00 +0200
commit97e61614bd0c578ca4f16cab96ab9d34dbbee58b (patch)
tree0dc2631992a7dd8990f3ad7fd072caccd8adaf01
parentsh: add bfs plug (diff)
nvim: tsserver -> ts_ls
-rw-r--r--dot_config/nvim/fnl/plugins/lsp.fnl4
-rw-r--r--dot_config/nvim/lua/plugins/lsp.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/dot_config/nvim/fnl/plugins/lsp.fnl b/dot_config/nvim/fnl/plugins/lsp.fnl
index 848f1b6..acfce7e 100644
--- a/dot_config/nvim/fnl/plugins/lsp.fnl
+++ b/dot_config/nvim/fnl/plugins/lsp.fnl
@@ -14,8 +14,8 @@
:lua_ls {}
:ruff {:cmd [:ruff :server :--preview]}
:texlab {:filetypes [:tex :plaintex :bib :latex]}
- :tsserver {:autostart false
- :root_dir (plist :tsconfig.json :package.json)}
+ :ts_ls {:autostart false
+ :root_dir (plist :tsconfig.json :jsconfig.json :package.json)}
:zls {}})
; default on-attach
diff --git a/dot_config/nvim/lua/plugins/lsp.lua b/dot_config/nvim/lua/plugins/lsp.lua
index a84f12c..1b32180 100644
--- a/dot_config/nvim/lua/plugins/lsp.lua
+++ b/dot_config/nvim/lua/plugins/lsp.lua
@@ -7,7 +7,7 @@ local insert = _local_2_["insert"]
local _local_3_ = require("toast.nvim")
local executable_3f = _local_3_["executable?"]
local function gopts(plist)
- return {basedpyright = {}, clangd = {}, clojure_lsp = {root_dir = plist("project.clj", "deps.edn", "bb.edn", "build.boot", "shadow-cljs.edn", ".git")}, denols = {root_dir = plist("deno.json", "deno.jsonc"), autostart = false}, gopls = {}, ltex = {}, lua_ls = {}, ruff = {cmd = {"ruff", "server", "--preview"}}, texlab = {filetypes = {"tex", "plaintex", "bib", "latex"}}, tsserver = {root_dir = plist("tsconfig.json", "package.json"), autostart = false}, zls = {}}
+ return {basedpyright = {}, clangd = {}, clojure_lsp = {root_dir = plist("project.clj", "deps.edn", "bb.edn", "build.boot", "shadow-cljs.edn", ".git")}, denols = {root_dir = plist("deno.json", "deno.jsonc"), autostart = false}, gopls = {}, ltex = {}, lua_ls = {}, ruff = {cmd = {"ruff", "server", "--preview"}}, texlab = {filetypes = {"tex", "plaintex", "bib", "latex"}}, ts_ls = {root_dir = plist("tsconfig.json", "jsconfig.json", "package.json"), autostart = false}, zls = {}}
end
local function attach(c, b)
local lsp = vim.lsp