tangled
alpha
login
or
join now
althaea.zone
/
candy
0
fork
atom
neovim
0
fork
atom
overview
issues
pulls
pipelines
move typescript config to typescript.lua
marshmallow.tngl.sh
9 months ago
e62349cf
7df27ee4
+19
-20
2 changed files
expand all
collapse all
unified
split
candy
lsp
typescript.lua
lua
marshmallow
lsp.lua
+19
candy/lsp/typescript.lua
···
1
1
+
require("typescript-tools").setup({
2
2
+
cmd = { "typescript-language-server", "--stdio" },
3
3
+
settings = {
4
4
+
-- https://github.com/pmizio/typescript-tools.nvim/blob/master/lua/typescript-tools/protocol/text_document/did_open.lua#L8
5
5
+
tsserver_file_preferences = {
6
6
+
includeInlayParameterNameHints = "all",
7
7
+
includeInlayFunctionParameterTypeHints = true,
8
8
+
includeInlayEnumMemberValueHints = true,
9
9
+
10
10
+
includeCompletionsForModuleExports = true,
11
11
+
12
12
+
quotePreference = "auto",
13
13
+
},
14
14
+
tsserver_format_options = {
15
15
+
allowIncompleteCompletions = false,
16
16
+
allowRenameOfImportPath = false,
17
17
+
},
18
18
+
},
19
19
+
})
-20
candy/lua/marshmallow/lsp.lua
···
13
13
end,
14
14
})
15
15
16
16
-
require("typescript-tools").setup({
17
17
-
cmd = { "typescript-language-server", "--stdio" },
18
18
-
settings = {
19
19
-
-- https://github.com/pmizio/typescript-tools.nvim/blob/master/lua/typescript-tools/protocol/text_document/did_open.lua#L8
20
20
-
tsserver_file_preferences = {
21
21
-
includeInlayParameterNameHints = "all",
22
22
-
includeInlayFunctionParameterTypeHints = true,
23
23
-
includeInlayEnumMemberValueHints = true,
24
24
-
25
25
-
includeCompletionsForModuleExports = true,
26
26
-
27
27
-
quotePreference = "auto",
28
28
-
},
29
29
-
tsserver_format_options = {
30
30
-
allowIncompleteCompletions = false,
31
31
-
allowRenameOfImportPath = false,
32
32
-
},
33
33
-
},
34
34
-
})
35
35
-
36
16
local lsp_configs = {}
37
17
38
18
for _, f in pairs(vim.api.nvim_get_runtime_file("lsp/*.lua", true)) do