Skip to content

Commit

Permalink
terminal/editors/neovim: add vim-dirtytalk
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed May 27, 2024
1 parent 8dbcc2e commit e2cb8c5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/home/programs/terminal/editors/neovim/options.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
_: {
{ lib, ... }:
let
inherit (lib) mkDefault;
in
{
programs.nixvim = {

clipboard = {
Expand Down Expand Up @@ -48,6 +52,7 @@ _: {
end
end
'';

dotnet_get_dll_path.__raw = # lua
''
function()
Expand Down Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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"
];
};
}

0 comments on commit e2cb8c5

Please sign in to comment.