add auto complete dictionary to nixos hosts
This commit is contained in:
parent
671c558473
commit
564a0136e1
1 changed files with 10 additions and 2 deletions
|
|
@ -13,7 +13,8 @@ in
|
|||
defaultEditor = true;
|
||||
|
||||
# Ensure jupytext is available for the jupytext.nvim plugin
|
||||
extraPackages = [ pythonWithJupytext ];
|
||||
# scowl provides English word lists for completion on NixOS
|
||||
extraPackages = [ pythonWithJupytext pkgs.scowl ];
|
||||
|
||||
# Global settings
|
||||
globals.mapleader = " ";
|
||||
|
|
@ -296,7 +297,7 @@ in
|
|||
},
|
||||
})
|
||||
|
||||
-- Dictionary completion setup (macOS only)
|
||||
-- Dictionary completion setup
|
||||
${lib.optionalString pkgs.stdenv.isDarwin ''
|
||||
require("cmp_dictionary").setup({
|
||||
paths = { "/usr/share/dict/words" }, -- Standard dictionary path on macOS
|
||||
|
|
@ -304,6 +305,13 @@ in
|
|||
first_case_insensitive = true, -- Case insensitive matching
|
||||
})
|
||||
''}
|
||||
${lib.optionalString (!pkgs.stdenv.isDarwin) ''
|
||||
require("cmp_dictionary").setup({
|
||||
paths = { "${pkgs.scowl}/share/dict/wamerican.txt" }, -- Nix-provided dictionary on NixOS
|
||||
exact_length = 2, -- Minimum length before completion
|
||||
first_case_insensitive = true, -- Case insensitive matching
|
||||
})
|
||||
''}
|
||||
|
||||
-- Jupytext setup for Jupyter notebook viewing
|
||||
require("jupytext").setup({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue