1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-16 05:51:10 +01:00

modules/lsp: rename server settingsconfig

See RFC: https://github.com/nix-community/nixvim/issues/3745

This effectively reverts 21688b1d2a
This commit is contained in:
Matt Sturgeon 2025-10-03 20:07:13 +01:00
parent 57006a3ace
commit 9f336d2d71
8 changed files with 30 additions and 29 deletions

View file

@ -85,7 +85,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
lsp = {
servers.clangd = {
settings = lib.mkIf cfg.enableOffsetEncodingWorkaround {
config = lib.mkIf cfg.enableOffsetEncodingWorkaround {
capabilities = {
offsetEncoding = [ "utf-16" ];
};

View file

@ -172,7 +172,7 @@ lib.nixvim.plugins.mkVimPlugin {
};
lsp.servers = {
jsonls.settings.settings = mkIf cfg.json.enable {
jsonls.config.settings = mkIf cfg.json.enable {
schemas.__raw = ''
require('schemastore').json.schemas(${lib.nixvim.toLuaObject cfg.json.settings})
'';
@ -182,7 +182,7 @@ lib.nixvim.plugins.mkVimPlugin {
validate.enable = mkDefault true;
};
yamlls.settings.settings = mkIf cfg.yaml.enable {
yamlls.config.settings = mkIf cfg.yaml.enable {
schemaStore = {
# From the README: "You must disable built-in schemaStore support if you want to use
# this plugin and its advanced options like `ignore`."