Skip to content

Commit

Permalink
feat: add plugin bd.vim
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyinzuo committed Apr 7, 2024
1 parent 3c41815 commit 40bb857
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions root/.config/nvim/lua/plugins/vimplug.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
vim.api.nvim_command('source ~/.vim/vimrc.d/plugin_setup.vim')

local M = {
'jiangyinzuo/bd.vim',
{
"lervag/vimtex",
ft = "tex",
Expand Down
9 changes: 7 additions & 2 deletions root/.config/nvim/lua/plugins_setup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ function M.lualine()
}
end

local filename = {
'filename',
path = 4,
shorting_target = 40,
}
require('lualine').setup {
options = {
icons_enabled = true,
Expand All @@ -124,7 +129,7 @@ function M.lualine()
}
},
sections = {
lualine_a = { 'filename' },
lualine_a = { filename },
-- 'diff' is slow
lualine_b = { 'branch', 'diagnostics' },
lualine_c = lualine_c,
Expand All @@ -135,7 +140,7 @@ function M.lualine()
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = { 'filename' },
lualine_c = { filename },
lualine_x = { 'location' },
lualine_y = {},
lualine_z = {}
Expand Down
2 changes: 2 additions & 0 deletions root/.vim/vimrc.d/vimplug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ if !exists('g:vscode')
Plug 'lambdalisue/fern-hijack.vim'
Plug 'LumaKernel/fern-mapping-fzf.vim'

Plug 'jiangyinzuo/bd.vim'
if v:version >= 800
Plug 'brooth/far.vim', {'on': ['Far', 'Farf', 'Farp', 'Farr']}
Plug 'preservim/vimux'
Expand Down Expand Up @@ -204,6 +205,7 @@ if !exists('g:vscode')
augroup END

" paste img in markdown/latex style
" Alternative: HakonHarnes/img-clip.nvim
Plug 'jiangyinzuo/img-paste.vim'

if v:version >= 802
Expand Down

0 comments on commit 40bb857

Please sign in to comment.