Skip to content

Commit

Permalink
Default to languageserver settings from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
sethidden committed Sep 7, 2021
1 parent f7a5380 commit 86431d9
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions lua/lspconfig/volar.lua
Expand Up @@ -47,32 +47,12 @@ local volar_init_options = {
}
}

-- https://github.com/johnsoncodehk/volar/blob/master/package.json#L56
local volar_settings = {
volar= {
codeLens= {
references = true,
pugTools = true,
scriptSetupTools = true,
},
lowPowerMode = false,
tsPluginStatus = false,
checkVueTscVersion = false,
preview= {
port = 3333,
backgroundColor = "fff",
transparentGrid = false,
}
}
}

configs[server_name] = {
default_config = {
cmd = { bin_name, '--stdio' },
filetypes = { 'vue' },
root_dir = util.root_pattern('package.json'),
init_options = volar_init_options,
settings = volar_settings,
},
docs = {
package_json = 'https://raw.githubusercontent.com/johnsoncodehk/volar/master/packages/server/package.json',
Expand All @@ -97,7 +77,6 @@ configs[server_name] = {
filetypes = { 'vue' },
root_dir = [[root_pattern('package.json')]],
init_options = volar_init_options,
settings = volar_settings,
}
}
}

0 comments on commit 86431d9

Please sign in to comment.