Fix formatting | Handle a edgecase in telescope config | Misc
* fix formatting in pluginList, luasnip * don't use pcall on highlights * sync and compile fzf and media files only when the error occurs, add a help text telling tbe user to restart neovim
This commit is contained in:
parent
05d57bba29
commit
0023233eef
5 changed files with 48 additions and 21 deletions
|
|
@ -1,11 +1,5 @@
|
|||
local luasnip
|
||||
if
|
||||
not pcall(
|
||||
function()
|
||||
luasnip = require "luasnip"
|
||||
end
|
||||
)
|
||||
then
|
||||
local present, luasnip = pcall(require, "luasnip")
|
||||
if not present then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -76,5 +76,8 @@ if
|
|||
)
|
||||
then
|
||||
-- This should only trigger when in need of PackerSync, so better do it
|
||||
vim.cmd("PackerSync")
|
||||
print("After completion of PackerSync, restart neovim.")
|
||||
require("packer").sync("telescope-fzf-native.nvim", "telescope-media-files.nvim")
|
||||
-- why compile too ? well, packer is supposed to compile with sync only, but sometimes it doesn't work
|
||||
vim.cmd("PackerCompile")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue