aboutsummaryrefslogtreecommitdiffstats
path: root/lua/pi/lsp/servers/ts_ls.lua
diff options
context:
space:
mode:
authorElvis Claros Castro <elvis@claros.ar>2024-09-20 23:08:00 -0300
committerElvis Claros Castro <elvis@claros.ar>2024-09-20 23:08:00 -0300
commitfa3e94e60b9edc7c3620f43e207b915eae84bab0 (patch)
tree10617c9508c797ffb9bcf3bdb09c60ae69371662 /lua/pi/lsp/servers/ts_ls.lua
parent6364400a98c93cdf6f2209670be1d2b6e31ee6ab (diff)
downloadnvim-conf-fa3e94e60b9edc7c3620f43e207b915eae84bab0.tar.gz
nvim-conf-fa3e94e60b9edc7c3620f43e207b915eae84bab0.zip
feat: solo dejo phpactor
Diffstat (limited to 'lua/pi/lsp/servers/ts_ls.lua')
-rw-r--r--lua/pi/lsp/servers/ts_ls.lua33
1 files changed, 33 insertions, 0 deletions
diff --git a/lua/pi/lsp/servers/ts_ls.lua b/lua/pi/lsp/servers/ts_ls.lua
new file mode 100644
index 0000000..c68c894
--- /dev/null
+++ b/lua/pi/lsp/servers/ts_ls.lua
@@ -0,0 +1,33 @@
+local lsp_attach = require "pi.lsp.attach"
+local lsp_flags = require "pi.lsp.flags"
+
+return function(ops)
+ return vim.tbl_extend("force", {
+ on_attach = lsp_attach,
+ flags = lsp_flags,
+ settings = {
+ typescript = {
+ inlayHints = {
+ includeInlayParameterNameHints = "all",
+ includeInlayParameterNameHintsWhenArgumentMatchesName = false,
+ includeInlayFunctionParameterTypeHints = true,
+ includeInlayVariableTypeHints = true,
+ includeInlayPropertyDeclarationTypeHints = true,
+ includeInlayFunctionLikeReturnTypeHints = true,
+ includeInlayEnumMemberValueHints = true,
+ },
+ },
+ javascript = {
+ inlayHints = {
+ includeInlayParameterNameHints = "all",
+ includeInlayParameterNameHintsWhenArgumentMatchesName = false,
+ includeInlayFunctionParameterTypeHints = true,
+ includeInlayVariableTypeHints = true,
+ includeInlayPropertyDeclarationTypeHints = true,
+ includeInlayFunctionLikeReturnTypeHints = true,
+ includeInlayEnumMemberValueHints = true,
+ },
+ },
+ },
+ }, ops)
+end