From fa3e94e60b9edc7c3620f43e207b915eae84bab0 Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Fri, 20 Sep 2024 23:08:00 -0300 Subject: feat: solo dejo phpactor --- lua/pi/lsp/servers/ts_ls.lua | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lua/pi/lsp/servers/ts_ls.lua (limited to 'lua/pi/lsp/servers/ts_ls.lua') 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 -- cgit v1.2.3