diff --git a/modules/nvim.nix b/modules/nvim.nix index 1f0e7cf..9d5aea1 100644 --- a/modules/nvim.nix +++ b/modules/nvim.nix @@ -97,6 +97,7 @@ sources = [ { name = "buffer"; } # Words from open buffers { name = "path"; } # File system paths + { name = "dictionary"; keyword_length = 2; } # English dictionary words ]; mapping = { @@ -113,6 +114,7 @@ # Extra plugins that don't have dedicated modules extraPlugins = with pkgs.vimPlugins; [ vim-fugitive + cmp-dictionary ]; # Keymaps @@ -221,6 +223,13 @@ }, }) + -- Dictionary completion setup + require("cmp_dictionary").setup({ + paths = { "/usr/share/dict/words" }, -- Standard dictionary path + exact_length = 2, -- Minimum length before completion + first_case_insensitive = true, -- Case insensitive matching + }) + -- Unicode-safe file operations for macOS function open_file_with_system_app() local filepath = vim.fn.expand('%:p')