From 855f4e4f0f22b35641f13614e46b9ab7f6818188 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 15 Mar 2021 23:26:50 +0100 Subject: Migration to lua --- .config/nvim/lua/lsp/json-ls.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .config/nvim/lua/lsp/json-ls.lua (limited to '.config/nvim/lua/lsp/json-ls.lua') diff --git a/.config/nvim/lua/lsp/json-ls.lua b/.config/nvim/lua/lsp/json-ls.lua new file mode 100644 index 0000000..d13fed3 --- /dev/null +++ b/.config/nvim/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 + } + } +} -- cgit v1.2.3-70-g09d2