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()
|
require("luasnip.loaders.from_vscode").lazy_load()
|
||||||
end,
|
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",
|
"blink.cmp",
|
||||||
before = function()
|
before = function()
|
||||||
-- Trigger lazydev so it's ready for blink source
|
-- Trigger lazydev so it's ready for blink source
|
||||||
require("lz.n").trigger_load({ "lazydev.nvim", "luasnip" })
|
require("lz.n").trigger_load({ "lazydev.nvim", "luasnip" })
|
||||||
end,
|
end,
|
||||||
event = "VimEnter",
|
|
||||||
after = function()
|
after = function()
|
||||||
require("blink.cmp").setup({
|
require("blink.cmp").setup({
|
||||||
keymap = {
|
keymap = {
|
||||||
|
|||||||
@@ -1,18 +1,4 @@
|
|||||||
require("lz.n").load({
|
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",
|
"nvim-lspconfig",
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
@@ -181,5 +167,4 @@ require("lz.n").load({
|
|||||||
vim.lsp.enable("ltex_plus")
|
vim.lsp.enable("ltex_plus")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ in
|
|||||||
path = syncPath;
|
path = syncPath;
|
||||||
devices = builtins.attrNames config.var.syncthing.devices; # Share with all defined devices
|
devices = builtins.attrNames config.var.syncthing.devices; # Share with all defined devices
|
||||||
# Ensure new files are readable by the group (chmod 770 approx)
|
# Ensure new files are readable by the group (chmod 770 approx)
|
||||||
ignorePerms = false;
|
ignorePerms = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user