From 47004abbe5a28bd07f3b5629c5d3821f3258bcce Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 29 Sep 2023 11:38:06 +0300 Subject: [PATCH] home/editor: add languagetool --- home/modules/editor.nix | 11 +++++++++-- nixos/hosts/asus-gl553vd/default.nix | 3 +++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/home/modules/editor.nix b/home/modules/editor.nix index 35eabab..e10c49a 100644 --- a/home/modules/editor.nix +++ b/home/modules/editor.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ pkgs, ... }: let myneovim = pkgs.myneovim.override { @@ -67,6 +67,10 @@ let }; }; pylsp = { }; + ltex = { + language = "en-US"; + languageToolHttpServerUri = "http://localhost:8081"; + }; }; }; lualine.settings = { @@ -92,7 +96,10 @@ let }; in { - home.packages = [ myneovim ]; + home.packages = [ + pkgs.ltex-ls + myneovim + ]; home.sessionVariables.EDITOR = "nvim"; } diff --git a/nixos/hosts/asus-gl553vd/default.nix b/nixos/hosts/asus-gl553vd/default.nix index c7bcae9..8aabc97 100644 --- a/nixos/hosts/asus-gl553vd/default.nix +++ b/nixos/hosts/asus-gl553vd/default.nix @@ -76,4 +76,7 @@ # Torrent # services.transmission.enable = true; + + # Style and Grammar Checker + services.languagetool.enable = true; }