diff --git a/modules/home/programs/terminal/editors/neovim/options.nix b/modules/home/programs/terminal/editors/neovim/options.nix index 5e4e9a0f0..c28665224 100644 --- a/modules/home/programs/terminal/editors/neovim/options.nix +++ b/modules/home/programs/terminal/editors/neovim/options.nix @@ -1,4 +1,8 @@ -_: { +{ lib, ... }: +let + inherit (lib) mkDefault; +in +{ programs.nixvim = { clipboard = { @@ -48,6 +52,7 @@ _: { end end ''; + dotnet_get_dll_path.__raw = # lua '' function() @@ -96,7 +101,7 @@ _: { laststatus = 3; # When to use a status line for the last window fileencoding = "utf-8"; # File-content encoding for the current buffer termguicolors = true; # Enables 24-bit RGB color in the |TUI| - spelllang = [ "en_us" ]; # Spell check languages + spelllang = mkDefault [ "en_us" ]; # Spell check languages spell = true; # Highlight spelling mistakes (local to window) wrap = false; # Prevent text from wrapping diff --git a/modules/home/programs/terminal/editors/neovim/plugins/dirtytalk.nix b/modules/home/programs/terminal/editors/neovim/plugins/dirtytalk.nix new file mode 100644 index 000000000..ce154a8e7 --- /dev/null +++ b/modules/home/programs/terminal/editors/neovim/plugins/dirtytalk.nix @@ -0,0 +1,21 @@ +{ pkgs, ... }: +{ + programs.nixvim = { + extraPlugins = [ + (pkgs.vimUtils.buildVimPlugin { + name = "vim-dirtytalk"; + src = pkgs.fetchFromGitHub { + owner = "psliwka"; + repo = "vim-dirtytalk"; + rev = "aa57ba902b04341a04ff97214360f56856493583"; + hash = "sha256-azU5jkv/fD/qDDyCU1bPNXOH6rmbDauG9jDNrtIXc0Y="; + }; + }) + ]; + + opts.spelllang = [ + "en_us" + "programming" + ]; + }; +}