mv luasnip config to others.lua
This commit is contained in:
parent
d5f4c04424
commit
5db010e870
@ -1,11 +0,0 @@
|
|||||||
local present, luasnip = pcall(require, "luasnip")
|
|
||||||
if not present then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
luasnip.config.set_config {
|
|
||||||
history = true,
|
|
||||||
updateevents = "TextChanged,TextChangedI",
|
|
||||||
}
|
|
||||||
|
|
||||||
require("luasnip/loaders/from_vscode").load()
|
|
@ -68,6 +68,19 @@ M.comment = function()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
M.luasnip = function()
|
||||||
|
local present, luasnip = pcall(require, "luasnip")
|
||||||
|
if not present then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
luasnip.config.set_config {
|
||||||
|
history = true,
|
||||||
|
updateevents = "TextChanged,TextChangedI",
|
||||||
|
}
|
||||||
|
require("luasnip/loaders/from_vscode").load()
|
||||||
|
end
|
||||||
|
|
||||||
M.lspkind = function()
|
M.lspkind = function()
|
||||||
local present, lspkind = pcall(require, "lspkind")
|
local present, lspkind = pcall(require, "lspkind")
|
||||||
if present then
|
if present then
|
||||||
|
@ -375,7 +375,7 @@ components.right.active[10] = {
|
|||||||
return " Bot "
|
return " Bot "
|
||||||
end
|
end
|
||||||
local result, _ = math.modf((current_line / total_line) * 100)
|
local result, _ = math.modf((current_line / total_line) * 100)
|
||||||
return " " .. result .. " %% "
|
return " " .. result .. "%% "
|
||||||
end,
|
end,
|
||||||
|
|
||||||
hl = {
|
hl = {
|
||||||
|
@ -192,7 +192,7 @@ return packer.startup(function()
|
|||||||
wants = "friendly-snippets",
|
wants = "friendly-snippets",
|
||||||
after = "nvim-cmp",
|
after = "nvim-cmp",
|
||||||
config = function()
|
config = function()
|
||||||
require "plugins.configs.luasnip"
|
require("plugins.configs.others").luasnip()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user