Skip to content

Commit

Permalink
lsp: adds json lsp
Browse files Browse the repository at this point in the history
Signed-off-by: aserowy <serowy@hotmail.com>
  • Loading branch information
aserowy committed Oct 31, 2024
1 parent 3a30c5f commit f928cbe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/language/lsp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ local lsps = {
require("language.lsp.csharp"),
require("language.lsp.dockerfile"),
require("language.lsp.go"),
require("language.lsp.json"),
require("language.lsp.null-ls"),
require("language.lsp.lua"),
require("language.lsp.nix"),
Expand Down
9 changes: 9 additions & 0 deletions lua/language/lsp/json.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
local M = {}
function M.setup(capabilities, on_attach)
require("lspconfig").jsonls.setup({
capabilities = capabilities,
on_attach = on_attach,
})
end

return M

0 comments on commit f928cbe

Please sign in to comment.