mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-16 05:51:10 +01:00
modules/lsp: rename server settings → config
See RFC: https://github.com/nix-community/nixvim/issues/3745
This effectively reverts 21688b1d2a
This commit is contained in:
parent
57006a3ace
commit
9f336d2d71
8 changed files with 30 additions and 29 deletions
|
|
@ -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" ];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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`."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue