diff options
| author | git-bruh <prathamIN@proton.me> | 2024-04-08 01:38:18 +0530 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-04-12 09:59:42 +0200 |
| commit | a2dc6b94c97dcb55d5451fcf7b89498dbc0b9b9d (patch) | |
| tree | 8f5710b79e50574230c00ab0dd039e55032974f2 /init.lua | |
| parent | 1a34f650a6b7e1fef84c4bddd034893fe9bb5ff3 (diff) | |
| download | vis-lspc-a2dc6b94c97dcb55d5451fcf7b89498dbc0b9b9d.tar.gz vis-lspc-a2dc6b94c97dcb55d5451fcf7b89498dbc0b9b9d.zip | |
init: map javascript/typescript to jsx/tsx
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -167,10 +167,13 @@ end -- mapping function between vis lexer names and LSP languageIds local function syntax_to_languageId(syntax) - if syntax == 'ansi_c' then - return 'c' - end - return syntax + local map = { + ansi_c = 'c', + javascript = 'jsx', + typescript = 'tsx', + } + + return map[syntax] or syntax end -- map of known language servers per syntax |
