diff --git a/conf.d/nvim/dashboard.lua b/conf.d/nvim/dashboard.lua index d4cf563..a8252d3 100644 --- a/conf.d/nvim/dashboard.lua +++ b/conf.d/nvim/dashboard.lua @@ -1,29 +1,38 @@ +--[[-- +File : dashboard.lua +Author : Jeff LANCE +Date : 20.07.2022 +Last Modified Date: 22.07.2022 +Last Modified By : Jeff LANCE + +db.custom_header -- type can be nil,table or function(must be return table in function) + -- 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 + -- icon type is nil or string + -- shortcut type is nil or string also like icon + -- action type can be string or function or nil. + -- 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.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_width -- number 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_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.header_pad -- number type default is 1 +db.center_pad -- number type default is 1 +db.footer_pad -- number type default is 1 + +--]]-- + local home = os.getenv('HOME') local db = require('dashboard') --- db.custom_header -- type can be nil,table or function(must be return table in function) - -- 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 - -- icon type is nil or string - -- shortcut type is nil or string also like icon - -- action type can be string or function or nil. - -- 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.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_width -- number 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_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.header_pad -- number type default is 1 --- db.center_pad -- number type default is 1 --- db.footer_pad -- number type default is 1 - 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_height = 16 +db.preview_file_height = 20 db.preview_file_width = 32 -- db.custom_header = { @@ -60,7 +69,7 @@ db.custom_center = { { desc = 'Fichiers récemment ouverts ', action = "lua require('telescope.builtin').oldfiles()", - shortcut = ';fo' + shortcut = ';fh' }, { desc = 'Parcourir les dotfiles ', diff --git a/conf.d/nvim/devicons.lua b/conf.d/nvim/devicons.lua index fd3b6dd..fd5818a 100644 --- a/conf.d/nvim/devicons.lua +++ b/conf.d/nvim/devicons.lua @@ -1,3 +1,11 @@ +--[[-- +File : devicons.lua +Author : Jeff LANCE +Date : 20.07.2022 +Last Modified Date: 22.07.2022 +Last Modified By : Jeff LANCE +--]]-- + require'nvim-web-devicons'.setup { -- globally enable default icons (default to false) -- will get overriden by `get_icons` option diff --git a/conf.d/nvim/functions.vim b/conf.d/nvim/functions.vim index 9102152..c24fe29 100644 --- a/conf.d/nvim/functions.vim +++ b/conf.d/nvim/functions.vim @@ -1,7 +1,7 @@ " File : functions.vim " Author : Jeff LANCE " Date : 15.04.2015 -" Last Modified Date: 03.03.2021 +" Last Modified Date: 22.07.2022 " Last Modified By : Jeff LANCE """"""""""""""""""""""""""""""""""""""""""""""""""""""" diff --git a/conf.d/nvim/header1.cat b/conf.d/nvim/header1.cat index 7eefeb9..0760ae0 100644 --- a/conf.d/nvim/header1.cat +++ b/conf.d/nvim/header1.cat @@ -1,16 +1,20 @@ - ⣿⣿⣷⡁⢆⠈⠕⢕⢂⢕⢂⢕⢂⢔⢂⢕⢄⠂⣂⠂⠆⢂⢕⢂⢕⢂⢕⢂⢕⢂ - ⣿⣿⣿⡷⠊⡢⡹⣦⡑⢂⢕⢂⢕⢂⢕⢂⠕⠔⠌⠝⠛⠶⠶⢶⣦⣄⢂⢕⢂⢕ - ⣿⣿⠏⣠⣾⣦⡐⢌⢿⣷⣦⣅⡑⠕⠡⠐⢿⠿⣛⠟⠛⠛⠛⠛⠡⢷⡈⢂⢕⢂ - ⠟⣡⣾⣿⣿⣿⣿⣦⣑⠝⢿⣿⣿⣿⣿⣿⡵⢁⣤⣶⣶⣿⢿⢿⢿⡟⢻⣤⢑⢂ - ⣾⣿⣿⡿⢟⣛⣻⣿⣿⣿⣦⣬⣙⣻⣿⣿⣷⣿⣿⢟⢝⢕⢕⢕⢕⢽⣿⣿⣷⣔ - ⣿⣿⠵⠚⠉⢀⣀⣀⣈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣗⢕⢕⢕⢕⢕⢕⣽⣿⣿⣿⣿ - ⢷⣂⣠⣴⣾⡿⡿⡻⡻⣿⣿⣴⣿⣿⣿⣿⣿⣿⣷⣵⣵⣵⣷⣿⣿⣿⣿⣿⣿⡿ - ⢌⠻⣿⡿⡫⡪⡪⡪⡪⣺⣿⣿⣿⣿⣿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃ - ⠣⡁⠹⡪⡪⡪⡪⣪⣾⣿⣿⣿⣿⠋⠐⢉⢍⢄⢌⠻⣿⣿⣿⣿⣿⣿⣿⣿⠏⠈ - ⡣⡘⢄⠙⣾⣾⣾⣿⣿⣿⣿⣿⣿⡀⢐⢕⢕⢕⢕⢕⡘⣿⣿⣿⣿⣿⣿⠏⠠⠈ - ⠌⢊⢂⢣⠹⣿⣿⣿⣿⣿⣿⣿⣿⣧⢐⢕⢕⢕⢕⢕⢅⣿⣿⣿⣿⡿⢋⢜⠠⠈ - ⠄⠁⠕⢝⡢⠈⠻⣿⣿⣿⣿⣿⣿⣿⣷⣕⣑⣑⣑⣵⣿⣿⣿⡿⢋⢔⢕⣿⠠⠈ - ⠨⡂⡀⢑⢕⡅⠂⠄⠉⠛⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⢔⢕⢕⣿⣿⠠⠈ - ⠄⠪⣂⠁⢕⠆⠄⠂⠄⠁⡀⠂⡀⠄⢈⠉⢍⢛⢛⢛⢋⢔⢕⢕⢕⣽⣿⣿⠠⠈ + ⣿⣿⣷⡁⢆⠈⠕⢕⢂⢕⢂⢕⢂⢔⢂⢕⢄⠂⣂⠂⠆⢂⢕⢂⢕⢂⢕⢂⢕⢂ + ⣿⣿⣿⡷⠊⡢⡹⣦⡑⢂⢕⢂⢕⢂⢕⢂⠕⠔⠌⠝⠛⠶⠶⢶⣦⣄⢂⢕⢂⢕ + ⣿⣿⠏⣠⣾⣦⡐⢌⢿⣷⣦⣅⡑⠕⠡⠐⢿⠿⣛⠟⠛⠛⠛⠛⠡⢷⡈⢂⢕⢂ + ⠟⣡⣾⣿⣿⣿⣿⣦⣑⠝⢿⣿⣿⣿⣿⣿⡵⢁⣤⣶⣶⣿⢿⢿⢿⡟⢻⣤⢑⢂ + ⣾⣿⣿⡿⢟⣛⣻⣿⣿⣿⣦⣬⣙⣻⣿⣿⣷⣿⣿⢟⢝⢕⢕⢕⢕⢽⣿⣿⣷⣔ + ⣿⣿⠵⠚⠉⢀⣀⣀⣈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣗⢕⢕⢕⢕⢕⢕⣽⣿⣿⣿⣿ + ⢷⣂⣠⣴⣾⡿⡿⡻⡻⣿⣿⣴⣿⣿⣿⣿⣿⣿⣷⣵⣵⣵⣷⣿⣿⣿⣿⣿⣿⡿ + ⢌⠻⣿⡿⡫⡪⡪⡪⡪⣺⣿⣿⣿⣿⣿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃ + ⠣⡁⠹⡪⡪⡪⡪⣪⣾⣿⣿⣿⣿⠋⠐⢉⢍⢄⢌⠻⣿⣿⣿⣿⣿⣿⣿⣿⠏⠈ + ⡣⡘⢄⠙⣾⣾⣾⣿⣿⣿⣿⣿⣿⡀⢐⢕⢕⢕⢕⢕⡘⣿⣿⣿⣿⣿⣿⠏⠠⠈ + ⠌⢊⢂⢣⠹⣿⣿⣿⣿⣿⣿⣿⣿⣧⢐⢕⢕⢕⢕⢕⢅⣿⣿⣿⣿⡿⢋⢜⠠⠈ + ⠄⠁⠕⢝⡢⠈⠻⣿⣿⣿⣿⣿⣿⣿⣷⣕⣑⣑⣑⣵⣿⣿⣿⡿⢋⢔⢕⣿⠠⠈ + ⠨⡂⡀⢑⢕⡅⠂⠄⠉⠛⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⢔⢕⢕⣿⣿⠠⠈ + ⠄⠪⣂⠁⢕⠆⠄⠂⠄⠁⡀⠂⡀⠄⢈⠉⢍⢛⢛⢛⢋⢔⢕⢕⢕⣽⣿⣿⠠⠈ + + ░█▀█░█▀▀░█▀█░█░█░▀█▀░█▄█ + ░█░█░█▀▀░█░█░▀▄▀░░█░░█░█ + ░▀░▀░▀▀▀░▀▀▀░░▀░░▀▀▀░▀░▀ diff --git a/conf.d/nvim/keybindings.vim b/conf.d/nvim/keybindings.vim index 019f0c7..a8a1110 100644 --- a/conf.d/nvim/keybindings.vim +++ b/conf.d/nvim/keybindings.vim @@ -1,7 +1,7 @@ " File : keybindings.vim " Author : Jeff LANCE " Date : 15.04.2015 -" Last Modified Date: 06.09.2021 +" Last Modified Date: 22.07.2022 " Last Modified By : Jeff LANCE """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -66,10 +66,10 @@ command -bang CloseBuffer :call CloseBuffer() map ff lua require('telescope.builtin').find_files() map fd lua require('telescope.builtin').find_files({ cwd = '/home/jeff/dotfiles' }) -map fo lua require('telescope.builtin').oldfiles() -map cn :echom 'Nouveau buffer' :DashboardNewFile +map fh lua require('telescope.builtin').oldfiles() +map cn :echom 'Nouveau fichier' :DashboardNewFile map :e -map :echom 'Fermeture buffer' :CloseBuffer! +map :echom 'Fermeture fichier' :CloseBuffer! map :bn map :bp @@ -145,10 +145,10 @@ map vp :VimuxPromptCommand " ----- " Renaming -map r :call RenameFile() +map fr :call RenameFile() " Open file under cursor -map o :call GotoFile("") +map foc :call GotoFile("") " Surround map ' S' diff --git a/conf.d/nvim/telescope.lua b/conf.d/nvim/telescope.lua index 8a6c85e..f26f13d 100644 --- a/conf.d/nvim/telescope.lua +++ b/conf.d/nvim/telescope.lua @@ -1,5 +1,14 @@ +--[[-- +File : telescope.lua +Author : Jeff LANCE +Date : 20.07.2022 +Last Modified Date: 22.07.2022 +Last Modified By : Jeff LANCE +--]]-- + local previewers = require("telescope.previewers") local Job = require("plenary.job") + local new_maker = function(filepath, bufnr, opts) filepath = vim.fn.expand(filepath) Job:new({