Move lazydev config and load blink.cmp on start
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user