Move lazydev config and load blink.cmp on start

This commit is contained in:
2025-12-04 18:44:15 +01:00
parent b473b2dc16
commit b492aeb371
3 changed files with 163 additions and 166 deletions

View File

@@ -171,13 +171,25 @@ require("lz.n").load({
require("luasnip.loaders.from_vscode").lazy_load()
end,
},
{
-- lazydev makes your lsp way better in your config without needing extra lsp configuration.
"lazydev.nvim",
cmd = "LazyDev",
ft = "lua",
after = function()
require("lazydev").setup({
library = {
{ words = { "nixCats" }, path = (nixCats.nixCatsPath or "") .. "/lua" },
},
})
end,
},
{
"blink.cmp",
before = function()
-- Trigger lazydev so it's ready for blink source
require("lz.n").trigger_load({ "lazydev.nvim", "luasnip" })
end,
event = "VimEnter",
after = function()
require("blink.cmp").setup({
keymap = {

View File

@@ -1,18 +1,4 @@
require("lz.n").load({
{
{
-- lazydev makes your lsp way better in your config without needing extra lsp configuration.
"lazydev.nvim",
cmd = "LazyDev",
ft = "lua",
after = function()
require("lazydev").setup({
library = {
{ words = { "nixCats" }, path = (nixCats.nixCatsPath or "") .. "/lua" },
},
})
end,
},
{
"nvim-lspconfig",
event = { "BufReadPre", "BufNewFile" },
@@ -181,5 +167,4 @@ require("lz.n").load({
vim.lsp.enable("ltex_plus")
end,
},
},
})

View File

@@ -40,7 +40,7 @@ in
path = syncPath;
devices = builtins.attrNames config.var.syncthing.devices; # Share with all defined devices
# Ensure new files are readable by the group (chmod 770 approx)
ignorePerms = false;
ignorePerms = true;
};
};