neovim

move typescript config to typescript.lua

+19 -20
+19
candy/lsp/typescript.lua
··· 1 + require("typescript-tools").setup({ 2 + cmd = { "typescript-language-server", "--stdio" }, 3 + settings = { 4 + -- https://github.com/pmizio/typescript-tools.nvim/blob/master/lua/typescript-tools/protocol/text_document/did_open.lua#L8 5 + tsserver_file_preferences = { 6 + includeInlayParameterNameHints = "all", 7 + includeInlayFunctionParameterTypeHints = true, 8 + includeInlayEnumMemberValueHints = true, 9 + 10 + includeCompletionsForModuleExports = true, 11 + 12 + quotePreference = "auto", 13 + }, 14 + tsserver_format_options = { 15 + allowIncompleteCompletions = false, 16 + allowRenameOfImportPath = false, 17 + }, 18 + }, 19 + })
-20
candy/lua/marshmallow/lsp.lua
··· 13 13 end, 14 14 }) 15 15 16 - require("typescript-tools").setup({ 17 - cmd = { "typescript-language-server", "--stdio" }, 18 - settings = { 19 - -- https://github.com/pmizio/typescript-tools.nvim/blob/master/lua/typescript-tools/protocol/text_document/did_open.lua#L8 20 - tsserver_file_preferences = { 21 - includeInlayParameterNameHints = "all", 22 - includeInlayFunctionParameterTypeHints = true, 23 - includeInlayEnumMemberValueHints = true, 24 - 25 - includeCompletionsForModuleExports = true, 26 - 27 - quotePreference = "auto", 28 - }, 29 - tsserver_format_options = { 30 - allowIncompleteCompletions = false, 31 - allowRenameOfImportPath = false, 32 - }, 33 - }, 34 - }) 35 - 36 16 local lsp_configs = {} 37 17 38 18 for _, f in pairs(vim.api.nvim_get_runtime_file("lsp/*.lua", true)) do