fix(neovim): fix dependency loading
This commit is contained in:
parent
d2b61c7e0a
commit
db7edb13b8
3 changed files with 5 additions and 4 deletions
|
|
@ -206,7 +206,7 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'barrettruth/nonicons.nvim',
|
'barrettruth/nonicons.nvim',
|
||||||
enabled = false,
|
enabled = true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'barrettruth/canola.nvim',
|
'barrettruth/canola.nvim',
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ return {
|
||||||
'ibhagwan/fzf-lua',
|
'ibhagwan/fzf-lua',
|
||||||
after = function()
|
after = function()
|
||||||
local fzf = require('fzf-lua')
|
local fzf = require('fzf-lua')
|
||||||
local has_devicons = pcall(require, 'nvim-web-devicons')
|
local has_icons = pcall(require, 'nonicons')
|
||||||
|
|
||||||
local opts = {
|
local opts = {
|
||||||
file_icon_padding = ' ',
|
file_icon_padding = ' ',
|
||||||
|
|
@ -85,8 +85,8 @@ return {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
opts.files.file_icons = has_devicons
|
opts.files.file_icons = has_icons
|
||||||
opts.grep.file_icons = has_devicons
|
opts.grep.file_icons = has_icons
|
||||||
opts.grep.rg_opts =
|
opts.grep.rg_opts =
|
||||||
fzf.defaults.grep.rg_opts:gsub('%-e$', "--glob='!.git/' -e")
|
fzf.defaults.grep.rg_opts:gsub('%-e$', "--glob='!.git/' -e")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ vim.pack.add({
|
||||||
return {
|
return {
|
||||||
'nvimdev/guard.nvim',
|
'nvimdev/guard.nvim',
|
||||||
before = function()
|
before = function()
|
||||||
|
vim.cmd.packadd('guard-collection')
|
||||||
vim.g.guard_config = {
|
vim.g.guard_config = {
|
||||||
fmt_on_save = false,
|
fmt_on_save = false,
|
||||||
save_on_fmt = true,
|
save_on_fmt = true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue