Compare commits

..

2 Commits

Author SHA1 Message Date
Moritz Böhme 2df38d379d
feat(nvim): add lazy loading for cmp 2023-03-07 14:26:37 +01:00
Moritz Böhme 0556bfe81e
feat: add lib as overlay 2023-03-07 14:25:30 +01:00
3 changed files with 62 additions and 51 deletions

View File

@ -48,6 +48,9 @@ require("nvim-treesitter.configs").setup({
},
})
-- load cmp on InsertEnter
vim.api.nvim_create_autocmd("InsertEnter", {
callback = function()
local cmp = require("cmp")
local luasnip = require("luasnip")
require("copilot_cmp").setup()
@ -102,6 +105,8 @@ cmp.setup({
{ name = "orgmode", priority = 9 },
},
})
end,
})
---merge tables
---@param ... table[]

View File

@ -5,4 +5,5 @@ lib.composeManyExtensions [
(import ./packages.nix { inherit inputs lib; })
(import ./vimPlugins.nix { inherit inputs lib; })
(import ./wayland.nix { inherit inputs lib; })
(import ./lib.nix { inherit inputs lib; })
]

5
overlays/lib.nix Normal file
View File

@ -0,0 +1,5 @@
{ lib, inputs }:
final: prev: {
inherit lib;
}