From 0bfd2e65b72291d13ab0af61bd15e30b116e1518 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Thu, 23 Jan 2025 15:26:33 +0100 Subject: [PATCH] Add vim-dirtytalk --- flake.nix | 4 ++++ nvim/default.nix | 2 ++ nvim/lua/settings.lua | 2 +- nvim/nix/pack.nix | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 155f67a..b1207ee 100644 --- a/flake.nix +++ b/flake.nix @@ -53,6 +53,10 @@ url = "github:barreiroleo/ltex_extra.nvim/dev"; flake = false; }; + dirtytalk = { + url = "github:psliwka/vim-dirtytalk"; + flake = false; + }; }; outputs = { diff --git a/nvim/default.nix b/nvim/default.nix index a56aabc..6fc53cf 100644 --- a/nvim/default.nix +++ b/nvim/default.nix @@ -4,6 +4,7 @@ neovim-nightly, vim-lumen, ltex-extra, + dirtytalk, ... }: let mkNvim = import ./nix/mknvim.nix {inherit pkgs lib;}; @@ -92,6 +93,7 @@ in vim-helm vim-sleuth + (mkPlugin dirtytalk "dirtytalk") auto-save-nvim undotree diff --git a/nvim/lua/settings.lua b/nvim/lua/settings.lua index 313c157..007a667 100644 --- a/nvim/lua/settings.lua +++ b/nvim/lua/settings.lua @@ -40,7 +40,7 @@ vim.opt.completeopt = { "menuone", "popup", "noinsert", "fuzzy" } vim.opt.pumheight = 15 vim.opt.spelloptions = { "camel", "noplainbuffer" } -vim.opt.spelllang = { "en", "cjk", } +vim.opt.spelllang = { "en", "programming", "cjk", } vim.opt.spell = true -- Can't specify this in wordmotion's config due to race conditions diff --git a/nvim/nix/pack.nix b/nvim/nix/pack.nix index 718f2f3..95ed4bf 100644 --- a/nvim/nix/pack.nix +++ b/nvim/nix/pack.nix @@ -33,6 +33,8 @@ "/build" # blink "/target" + # dirtytalk + "/wordlists" ]; # Every plugin has its own generated help tags (doc/tags)