{ lib, config, pkgs, ... }: lib.optionalString (lib.elem "nvim::lsp::ltex" config.machine.pkgs) # lua '' lspconfig.ltex.setup({ cmd = { "${pkgs.ltex-ls}/bin/ltex-ls" }, settings = { ltex = { language = "de-DE", }, }, }) vim.api.nvim_create_user_command( "LtexLang", "lua SetLtexLang()", { nargs = 1, desc = "Set ltex-ls language" } ) ''