Skip to content

Commit

Permalink
style: format files with stylua v0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lithammer committed Sep 23, 2021
1 parent aa0b9fd commit 52251a1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
9 changes: 8 additions & 1 deletion lua/lspconfig/denols.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,14 @@ end
configs[server_name] = {
default_config = {
cmd = { 'deno', 'lsp' },
filetypes = { 'javascript', 'javascriptreact', 'javascript.jsx', 'typescript', 'typescriptreact', 'typescript.tsx' },
filetypes = {
'javascript',
'javascriptreact',
'javascript.jsx',
'typescript',
'typescriptreact',
'typescript.tsx',
},
root_dir = util.root_pattern('package.json', 'tsconfig.json', '.git'),
init_options = {
enable = true,
Expand Down
9 changes: 8 additions & 1 deletion lua/lspconfig/tsserver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ configs[server_name] = {
default_config = {
init_options = { hostInfo = 'neovim' },
cmd = { bin_name, '--stdio' },
filetypes = { 'javascript', 'javascriptreact', 'javascript.jsx', 'typescript', 'typescriptreact', 'typescript.tsx' },
filetypes = {
'javascript',
'javascriptreact',
'javascript.jsx',
'typescript',
'typescriptreact',
'typescript.tsx',
},
root_dir = function(fname)
return util.root_pattern 'tsconfig.json'(fname)
or util.root_pattern('package.json', 'jsconfig.json', '.git')(fname)
Expand Down
5 changes: 4 additions & 1 deletion scripts/vimdocgen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ docs.generate = function()
['Example: override some defaults'] = { 'Overriding server defaults', 'override-server-defaults' },
['Example: custom config'] = { 'Custom config', 'custom-config' },
['Example: override default config for all servers'] = { 'Overriding all defaults', 'override-all-defaults' },
['Individual server settings and initialization options'] = { 'Per-server documentation', 'server-documentation' },
['Individual server settings and initialization options'] = {
'Per-server documentation',
'server-documentation',
},
['Keybindings and completion'] = { 'Keybindings', 'keybindings' },
['Manually starting (or restarting) language servers'] = { 'Manual control', 'manual-control' },
},
Expand Down

0 comments on commit 52251a1

Please sign in to comment.