Update
This commit is contained in:
parent
a6a2a06961
commit
c3fba890b6
@ -1,29 +1,38 @@
|
|||||||
local home = os.getenv('HOME')
|
--[[--
|
||||||
local db = require('dashboard')
|
File : dashboard.lua
|
||||||
-- db.custom_header -- type can be nil,table or function(must be return table in function)
|
Author : Jeff LANCE <email@jefflance.me>
|
||||||
|
Date : 20.07.2022
|
||||||
|
Last Modified Date: 22.07.2022
|
||||||
|
Last Modified By : Jeff LANCE <email@jefflance.me>
|
||||||
|
|
||||||
|
db.custom_header -- type can be nil,table or function(must be return table in function)
|
||||||
-- if not config will use default banner
|
-- if not config will use default banner
|
||||||
-- db.custom_center -- table type and in this table you can set icon,desc,shortcut,action keywords. desc must be exist and type is string
|
db.custom_center -- table type and in this table you can set icon,desc,shortcut,action keywords. desc must be exist and type is string
|
||||||
-- icon type is nil or string
|
-- icon type is nil or string
|
||||||
-- shortcut type is nil or string also like icon
|
-- shortcut type is nil or string also like icon
|
||||||
-- action type can be string or function or nil.
|
-- action type can be string or function or nil.
|
||||||
-- if you don't need any one of icon shortcut action ,you can ignore it.
|
-- if you don't need any one of icon shortcut action ,you can ignore it.
|
||||||
-- db.custom_footer -- type can be nil,table or function(must be return table in function)
|
db.custom_footer -- type can be nil,table or function(must be return table in function)
|
||||||
-- db.preview_file_Path -- string or function type that mean in function you can dynamic generate height width
|
db.preview_file_Path -- string or function type that mean in function you can dynamic generate height width
|
||||||
-- db.preview_file_height -- number type
|
db.preview_file_height -- number type
|
||||||
-- db.preview_file_width -- number type
|
db.preview_file_width -- number type
|
||||||
-- db.preview_command -- string type
|
db.preview_command -- string type
|
||||||
-- db.hide_statusline -- boolean default is true.it will hide statusline in dashboard buffer and auto open in other buffer
|
db.hide_statusline -- boolean default is true.it will hide statusline in dashboard buffer and auto open in other buffer
|
||||||
-- db.hide_tabline -- boolean default is true.it will hide tabline in dashboard buffer and auto open in other buffer
|
db.hide_tabline -- boolean default is true.it will hide tabline in dashboard buffer and auto open in other buffer
|
||||||
-- db.session_directory -- string type the directory to store the session file
|
db.session_directory -- string type the directory to store the session file
|
||||||
-- db.header_pad -- number type default is 1
|
db.header_pad -- number type default is 1
|
||||||
-- db.center_pad -- number type default is 1
|
db.center_pad -- number type default is 1
|
||||||
-- db.footer_pad -- number type default is 1
|
db.footer_pad -- number type default is 1
|
||||||
|
|
||||||
|
--]]--
|
||||||
|
|
||||||
|
local home = os.getenv('HOME')
|
||||||
|
local db = require('dashboard')
|
||||||
local dotfiles = '\'' .. home .. '/dotfiles\''
|
local dotfiles = '\'' .. home .. '/dotfiles\''
|
||||||
|
|
||||||
db.preview_command = 'cat | lolcat'
|
db.preview_command = 'cat | lolcat -a'
|
||||||
db.preview_file_path = home .. '/.config/nvim/header1.cat'
|
db.preview_file_path = home .. '/.config/nvim/header1.cat'
|
||||||
db.preview_file_height = 16
|
db.preview_file_height = 20
|
||||||
db.preview_file_width = 32
|
db.preview_file_width = 32
|
||||||
|
|
||||||
-- db.custom_header = {
|
-- db.custom_header = {
|
||||||
@ -60,7 +69,7 @@ db.custom_center = {
|
|||||||
{
|
{
|
||||||
desc = 'Fichiers récemment ouverts ',
|
desc = 'Fichiers récemment ouverts ',
|
||||||
action = "lua require('telescope.builtin').oldfiles()",
|
action = "lua require('telescope.builtin').oldfiles()",
|
||||||
shortcut = ';fo'
|
shortcut = ';fh'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
desc = 'Parcourir les dotfiles ',
|
desc = 'Parcourir les dotfiles ',
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--[[--
|
||||||
|
File : devicons.lua
|
||||||
|
Author : Jeff LANCE <email@jefflance.me>
|
||||||
|
Date : 20.07.2022
|
||||||
|
Last Modified Date: 22.07.2022
|
||||||
|
Last Modified By : Jeff LANCE <email@jefflance.me>
|
||||||
|
--]]--
|
||||||
|
|
||||||
require'nvim-web-devicons'.setup {
|
require'nvim-web-devicons'.setup {
|
||||||
-- globally enable default icons (default to false)
|
-- globally enable default icons (default to false)
|
||||||
-- will get overriden by `get_icons` option
|
-- will get overriden by `get_icons` option
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" File : functions.vim
|
" File : functions.vim
|
||||||
" Author : Jeff LANCE <email@jefflance.me>
|
" Author : Jeff LANCE <email@jefflance.me>
|
||||||
" Date : 15.04.2015
|
" Date : 15.04.2015
|
||||||
" Last Modified Date: 03.03.2021
|
" Last Modified Date: 22.07.2022
|
||||||
" Last Modified By : Jeff LANCE <email@jefflance.me>
|
" Last Modified By : Jeff LANCE <email@jefflance.me>
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
@ -14,3 +14,7 @@
|
|||||||
⠨⡂⡀⢑⢕⡅⠂⠄⠉⠛⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⢔⢕⢕⣿⣿⠠⠈
|
⠨⡂⡀⢑⢕⡅⠂⠄⠉⠛⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⢔⢕⢕⣿⣿⠠⠈
|
||||||
⠄⠪⣂⠁⢕⠆⠄⠂⠄⠁⡀⠂⡀⠄⢈⠉⢍⢛⢛⢛⢋⢔⢕⢕⢕⣽⣿⣿⠠⠈
|
⠄⠪⣂⠁⢕⠆⠄⠂⠄⠁⡀⠂⡀⠄⢈⠉⢍⢛⢛⢛⢋⢔⢕⢕⢕⣽⣿⣿⠠⠈
|
||||||
|
|
||||||
|
░█▀█░█▀▀░█▀█░█░█░▀█▀░█▄█
|
||||||
|
░█░█░█▀▀░█░█░▀▄▀░░█░░█░█
|
||||||
|
░▀░▀░▀▀▀░▀▀▀░░▀░░▀▀▀░▀░▀
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" File : keybindings.vim
|
" File : keybindings.vim
|
||||||
" Author : Jeff LANCE <email@jefflance.me>
|
" Author : Jeff LANCE <email@jefflance.me>
|
||||||
" Date : 15.04.2015
|
" Date : 15.04.2015
|
||||||
" Last Modified Date: 06.09.2021
|
" Last Modified Date: 22.07.2022
|
||||||
" Last Modified By : Jeff LANCE <email@jefflance.me>
|
" Last Modified By : Jeff LANCE <email@jefflance.me>
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
@ -66,10 +66,10 @@ command -bang CloseBuffer :call CloseBuffer()
|
|||||||
|
|
||||||
map <Leader>ff <cmd>lua require('telescope.builtin').find_files()<cr>
|
map <Leader>ff <cmd>lua require('telescope.builtin').find_files()<cr>
|
||||||
map <Leader>fd <cmd>lua require('telescope.builtin').find_files({ cwd = '/home/jeff/dotfiles' })<cr>
|
map <Leader>fd <cmd>lua require('telescope.builtin').find_files({ cwd = '/home/jeff/dotfiles' })<cr>
|
||||||
map <Leader>fo <cmd>lua require('telescope.builtin').oldfiles()<cr>
|
map <Leader>fh <cmd>lua require('telescope.builtin').oldfiles()<cr>
|
||||||
map <Leader>cn :echom 'Nouveau buffer' <bar> :DashboardNewFile<cr>
|
map <Leader>cn :echom 'Nouveau fichier' <bar> :DashboardNewFile<cr>
|
||||||
map <C-o> :e<space>
|
map <C-o> :e<space>
|
||||||
map <C-w> :echom 'Fermeture buffer' <bar> :CloseBuffer!<cr>
|
map <C-w> :echom 'Fermeture fichier' <bar> :CloseBuffer!<cr>
|
||||||
map <A-PageDown> :bn<cr>
|
map <A-PageDown> :bn<cr>
|
||||||
map <A-PageUp> :bp<cr>
|
map <A-PageUp> :bp<cr>
|
||||||
|
|
||||||
@ -145,10 +145,10 @@ map <Leader>vp :VimuxPromptCommand<cr>
|
|||||||
" -----
|
" -----
|
||||||
|
|
||||||
" Renaming
|
" Renaming
|
||||||
map <leader>r :call RenameFile()<cr>
|
map <leader>fr :call RenameFile()<cr>
|
||||||
|
|
||||||
" Open file under cursor
|
" Open file under cursor
|
||||||
map <leader>o :call GotoFile("")<cr>
|
map <leader>foc :call GotoFile("")<cr>
|
||||||
|
|
||||||
" Surround
|
" Surround
|
||||||
map <leader>' S'<cr>
|
map <leader>' S'<cr>
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
|
--[[--
|
||||||
|
File : telescope.lua
|
||||||
|
Author : Jeff LANCE <email@jefflance.me>
|
||||||
|
Date : 20.07.2022
|
||||||
|
Last Modified Date: 22.07.2022
|
||||||
|
Last Modified By : Jeff LANCE <email@jefflance.me>
|
||||||
|
--]]--
|
||||||
|
|
||||||
local previewers = require("telescope.previewers")
|
local previewers = require("telescope.previewers")
|
||||||
local Job = require("plenary.job")
|
local Job = require("plenary.job")
|
||||||
|
|
||||||
local new_maker = function(filepath, bufnr, opts)
|
local new_maker = function(filepath, bufnr, opts)
|
||||||
filepath = vim.fn.expand(filepath)
|
filepath = vim.fn.expand(filepath)
|
||||||
Job:new({
|
Job:new({
|
||||||
|
Loading…
Reference in New Issue
Block a user