mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2025-12-17 03:31:59 -05:00
feat:add_nixvim
This commit is contained in:
31
home/nixvim/plugins/lang/json.nix
Normal file
31
home/nixvim/plugins/lang/json.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{pkgs, ...}: {
|
||||
plugins = {
|
||||
conform-nvim.settings = {
|
||||
formatters_by_ft = {
|
||||
json = ["jq"];
|
||||
};
|
||||
|
||||
formatters = {
|
||||
jq = {
|
||||
command = "${pkgs.jq}/bin/jq";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
lint = {
|
||||
lintersByFt = {
|
||||
json = ["jsonlint"];
|
||||
};
|
||||
|
||||
linters = {
|
||||
jsonlint = {
|
||||
cmd = "${pkgs.nodePackages_latest.jsonlint}/bin/jsonlint";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
lsp.servers.jsonls = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user