diff options
author | Christian Chiarulli <[email protected]> | 2021-03-09 23:55:11 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-09 23:55:11 -0500 |
commit | 474f961b2a31c0fe8281188150c08cc2849bf4df (patch) | |
tree | 8a25933cd7a63eddbcab05220d702a6ba7c7f2b6 /lua/lsp/json-ls.lua | |
parent | 56f65b12a446fe05483a23585dd4e3104205b062 (diff) |
Native LSP, more Lua, less CoC
Diffstat (limited to 'lua/lsp/json-ls.lua')
-rw-r--r-- | lua/lsp/json-ls.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lua/lsp/json-ls.lua b/lua/lsp/json-ls.lua new file mode 100644 index 00000000..474f1803 --- /dev/null +++ b/lua/lsp/json-ls.lua @@ -0,0 +1,11 @@ +-- 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 + } + } +} + |