diff --git a/flake.lock b/flake.lock index 901ebb8..5ebe5e6 100644 --- a/flake.lock +++ b/flake.lock @@ -315,7 +315,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-0SJy0es1cOrwO73ew9nPJdZfjHFOPo3v/zflUVZZASE=", + "narHash": "sha256-1L5aXNQndyNRWsIE5GzvmHNKT7UWX4BRSPitnvuUdp0=", "path": "./nixvim", "type": "path" }, diff --git a/nixvim/config/cmp.nix b/nixvim/config/cmp.nix new file mode 100644 index 0000000..b021346 --- /dev/null +++ b/nixvim/config/cmp.nix @@ -0,0 +1,13 @@ +{ + plugins.cmp = { + enable = true; + autoEnableSources = true; + settings = { + sources = [ + { name = "nvim_lsp"; } + { name = "path"; } + { name = "buffer"; } + ]; + }; + }; +} diff --git a/nixvim/config/default.nix b/nixvim/config/default.nix index fcde890..dc566b1 100644 --- a/nixvim/config/default.nix +++ b/nixvim/config/default.nix @@ -12,5 +12,8 @@ # language support & lsp ./lsp.nix ./nix.nix + + # autocompletion + ./cmp.nix ]; }