@@ -279,7 +279,7 @@ require('lazy').setup({
279279 },
280280 },
281281 },
282-
282+ { ' jvgrootveld/telescope-zoxide ' , opts = {} },
283283 -- NOTE: Plugins can also be configured to run Lua code when they are loaded.
284284 --
285285 -- This is often very useful to both group configuration, as well as handle
@@ -403,6 +403,7 @@ require('lazy').setup({
403403
404404 -- [[ Configure Telescope ]]
405405 -- See `:help telescope` and `:help telescope.setup()`
406+ local z_utils = require ' telescope._extensions.zoxide.utils'
406407 require (' telescope' ).setup {
407408 -- You can put your default mappings / updates / etc. in here
408409 -- All the info you're looking for is in `:help telescope.setup()`
@@ -422,11 +423,42 @@ require('lazy').setup({
422423 auto_quoting = true ,
423424 theme = ' dropdown' ,
424425 },
426+ [' zoxide' ] = {
427+ prompt_title = ' [ Zoxide List ]' ,
428+
429+ -- Zoxide list command with score
430+ list_command = ' zoxide query -ls' ,
431+ mappings = {
432+ default = {
433+ action = function (selection )
434+ vim .cmd .cd (selection .path )
435+ end ,
436+ after_action = function (selection )
437+ vim .notify (' Directory changed to ' .. selection .path )
438+ end ,
439+ },
440+ [' <C-s>' ] = { action = z_utils .create_basic_command ' split' },
441+ [' <C-v>' ] = { action = z_utils .create_basic_command ' vsplit' },
442+ [' <C-e>' ] = { action = z_utils .create_basic_command ' edit' },
443+ [' <C-f>' ] = {
444+ keepinsert = true ,
445+ action = function (selection )
446+ builtin .find_files { cwd = selection .path }
447+ end ,
448+ },
449+ [' <C-t>' ] = {
450+ action = function (selection )
451+ vim .cmd .tcd (selection .path )
452+ end ,
453+ },
454+ },
455+ },
425456 },
426457 }
427458
428459 -- Enable Telescope extensions if they are installed
429460 pcall (require (' telescope' ).load_extension , ' fzf' )
461+ pcall (require (' telescope' ).load_extension , ' zoxide' )
430462 pcall (require (' telescope' ).load_extension , ' ui-select' )
431463
432464 -- See `:help telescope.builtin`
@@ -740,8 +772,8 @@ require('lazy').setup({
740772 end ,
741773 formatters_by_ft = {
742774 cmake = { ' cmakelang' },
743- cpp = { ' clang_format ' },
744- json = { ' clang_format ' },
775+ cpp = { ' clang-format ' },
776+ json = { ' clang-format ' },
745777 lua = { ' stylua' },
746778 -- Conform can also run multiple formatters sequentially
747779 python = { ' isort' },
@@ -879,7 +911,7 @@ require('lazy').setup({
879911 -- Load the colorscheme here.
880912 -- Like many other themes, this one has different styles, and you could load
881913 -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
882- vim .cmd .colorscheme ' wildcharm '
914+ vim .cmd .colorscheme ' retrobox '
883915
884916 -- You can configure highlights by doing something like:
885917 vim .cmd .hi ' Comment gui=none'
@@ -971,7 +1003,7 @@ require('lazy').setup({
9711003 -- Uncomment any of the lines below to enable them (you will need to restart nvim).
9721004 --
9731005 -- require 'kickstart.plugins.debug',
974- -- require 'kickstart.plugins.indent_line',
1006+ require ' kickstart.plugins.indent_line' ,
9751007 -- require 'kickstart.plugins.lint',
9761008 -- require 'kickstart.plugins.autopairs',
9771009 -- require 'kickstart.plugins.neo-tree',
@@ -1042,3 +1074,4 @@ require('lazy').setup({
10421074
10431075-- The line beneath this is called `modeline`. See `:help modeline`
10441076-- vim: ts=2 sts=2 sw=2 et
1077+ require ' custom/keymap'
0 commit comments