Compare commits
2 commits
d1f910db69
...
2df38d379d
Author | SHA1 | Date | |
---|---|---|---|
2df38d379d | |||
0556bfe81e |
3 changed files with 62 additions and 51 deletions
|
@ -48,11 +48,14 @@ require("nvim-treesitter.configs").setup({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
local cmp = require("cmp")
|
-- load cmp on InsertEnter
|
||||||
local luasnip = require("luasnip")
|
vim.api.nvim_create_autocmd("InsertEnter", {
|
||||||
require("copilot_cmp").setup()
|
callback = function()
|
||||||
|
local cmp = require("cmp")
|
||||||
|
local luasnip = require("luasnip")
|
||||||
|
require("copilot_cmp").setup()
|
||||||
|
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
formatting = {
|
formatting = {
|
||||||
format = require("lspkind").cmp_format({
|
format = require("lspkind").cmp_format({
|
||||||
mode = "symbol", -- show only symbol annotations
|
mode = "symbol", -- show only symbol annotations
|
||||||
|
@ -101,6 +104,8 @@ cmp.setup({
|
||||||
{ name = "nvim_lsp", priority = 9 },
|
{ name = "nvim_lsp", priority = 9 },
|
||||||
{ name = "orgmode", priority = 9 },
|
{ name = "orgmode", priority = 9 },
|
||||||
},
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
---merge tables
|
---merge tables
|
||||||
|
|
|
@ -5,4 +5,5 @@ lib.composeManyExtensions [
|
||||||
(import ./packages.nix { inherit inputs lib; })
|
(import ./packages.nix { inherit inputs lib; })
|
||||||
(import ./vimPlugins.nix { inherit inputs lib; })
|
(import ./vimPlugins.nix { inherit inputs lib; })
|
||||||
(import ./wayland.nix { inherit inputs lib; })
|
(import ./wayland.nix { inherit inputs lib; })
|
||||||
|
(import ./lib.nix { inherit inputs lib; })
|
||||||
]
|
]
|
||||||
|
|
5
overlays/lib.nix
Normal file
5
overlays/lib.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{ lib, inputs }:
|
||||||
|
|
||||||
|
final: prev: {
|
||||||
|
inherit lib;
|
||||||
|
}
|
Loading…
Reference in a new issue