diff options
author | Chris <[email protected]> | 2021-03-15 23:11:39 -0400 |
---|---|---|
committer | Chris <[email protected]> | 2021-03-15 23:11:39 -0400 |
commit | e26b5c51ed152ea1047bd94093f514d95b167a3e (patch) | |
tree | 533c3d94cc85f07e112a1032d81fc2d6d1857510 /lua/lsp/json-ls.lua | |
parent | 51aa582272fc3b5f327ed481acd34125848f9ca2 (diff) |
update LSP get nvim-jdtls working with Java
Diffstat (limited to 'lua/lsp/json-ls.lua')
-rw-r--r-- | lua/lsp/json-ls.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/lsp/json-ls.lua b/lua/lsp/json-ls.lua new file mode 100644 index 00000000..d13fed3f --- /dev/null +++ b/lua/lsp/json-ls.lua @@ -0,0 +1,10 @@ +-- npm install -g vscode-json-languageserver +require'lspconfig'.jsonls.setup { + commands = { + Format = { + function() + vim.lsp.buf.range_formatting({},{0,0},{vim.fn.line("$"),0}) + end + } + } +} |