some more changes
This commit is contained in:
parent
b246383e47
commit
f1e7d8fe7f
6 changed files with 64 additions and 20 deletions
|
|
@ -1,13 +1,16 @@
|
|||
return {
|
||||
'ibhagwan/fzf-lua',
|
||||
config = function(_, opts)
|
||||
local fzf = require('fzf-lua')
|
||||
|
||||
local has_devicons = pcall(require, 'nvim-web-devicons')
|
||||
opts.files = opts.files or {}
|
||||
opts.files.file_icons = has_devicons
|
||||
opts.grep = opts.grep or {}
|
||||
opts.grep.file_icons = has_devicons
|
||||
opts.grep.rg_opts = fzf.defaults.grep.rg_opts:gsub("%-e$", "--glob='!.git/' -e")
|
||||
|
||||
require('fzf-lua').setup(opts)
|
||||
fzf.setup(opts)
|
||||
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = 'fzf',
|
||||
|
|
|
|||
|
|
@ -225,6 +225,47 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
'malewicz1337/oil-git.nvim',
|
||||
ft = 'oil',
|
||||
opts = {
|
||||
symbol_position = 'signcolumn',
|
||||
show_file_highlights = false,
|
||||
show_directory_highlights = false,
|
||||
symbols = {
|
||||
file = {
|
||||
added = '│',
|
||||
modified = '│',
|
||||
renamed = '│',
|
||||
deleted = '_',
|
||||
copied = '│',
|
||||
conflict = '│',
|
||||
untracked = '│',
|
||||
ignored = ' ',
|
||||
},
|
||||
directory = {
|
||||
added = '│',
|
||||
modified = '│',
|
||||
renamed = '│',
|
||||
deleted = '_',
|
||||
copied = '│',
|
||||
conflict = '│',
|
||||
untracked = '│',
|
||||
ignored = ' ',
|
||||
},
|
||||
},
|
||||
highlights = {
|
||||
OilGitAdded = { link = 'GitSignsAdd' },
|
||||
OilGitModified = { link = 'GitSignsChange' },
|
||||
OilGitRenamed = { link = 'GitSignsChange' },
|
||||
OilGitDeleted = { link = 'GitSignsDelete' },
|
||||
OilGitCopied = { link = 'GitSignsChange' },
|
||||
OilGitConflict = { link = 'GitSignsDelete' },
|
||||
OilGitUntracked = { link = 'GitSignsAdd' },
|
||||
OilGitIgnored = { link = 'Comment' },
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"lewis6991/gitsigns.nvim",
|
||||
event = "VeryLazy",
|
||||
|
|
|
|||
|
|
@ -263,6 +263,7 @@ return {
|
|||
},
|
||||
{
|
||||
'stevearc/oil.nvim',
|
||||
dir = '~/dev/oil.nvim',
|
||||
config = function(_, opts)
|
||||
require('oil').setup(opts)
|
||||
local refresh = require("oil.actions").refresh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue