mirror of
https://github.com/sadan4/nvim.git
synced 2024-11-16 22:34:39 -05:00
changes
This commit is contained in:
parent
c5b2c0b584
commit
e8190de318
2 changed files with 13 additions and 1 deletions
|
@ -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()
|
||||
|
|
|
@ -8,7 +8,9 @@ capabilities.textDocument.foldingRange = {
|
|||
dynamicRegistration = false,
|
||||
lineFoldingOnly = true,
|
||||
}
|
||||
|
||||
require("lspconfig").nil_ls.setup({
|
||||
capabilities = capabilities,
|
||||
})
|
||||
require("lspconfig").jsonls.setup({
|
||||
capabilities = capabilities,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue