This commit is contained in:
sadanslargehole 2024-05-03 18:47:42 -04:00
parent c5b2c0b584
commit e8190de318
No known key found for this signature in database
GPG key ID: B2E2F4A5161A7800
2 changed files with 13 additions and 1 deletions

View file

@ -11,6 +11,16 @@ require("formatter").setup({
log_level = vim.log.levels.WARN,
-- All formatter configurations are opt-in
filetype = {
nix = {
require("formatter.filetypes.nix").nixpkgs_fmt,
function()
return {
exe = "nixpkgs-fmt",
stdin = true,
args = {},
}
end,
},
json = {
require("formatter.filetypes.json").prettierd,
function()

View file

@ -8,7 +8,9 @@ capabilities.textDocument.foldingRange = {
dynamicRegistration = false,
lineFoldingOnly = true,
}
require("lspconfig").nil_ls.setup({
capabilities = capabilities,
})
require("lspconfig").jsonls.setup({
capabilities = capabilities,
})