diff --git a/dot_config/nvim/lua/keymaps.lua b/dot_config/nvim/lua/keymaps.lua index c7075af..7743542 100644 --- a/dot_config/nvim/lua/keymaps.lua +++ b/dot_config/nvim/lua/keymaps.lua @@ -87,6 +87,7 @@ nnoremap("xp", nnoremap("xP", "PackerSync") nnoremap("gg", "Neogit") +nnoremap("gf", "lua require('telescope').extensions.chezmoi.find_files()") -- Show line diagnostics nnoremap("d", diff --git a/dot_config/nvim/lua/plugins.lua b/dot_config/nvim/lua/plugins.lua index 7a3b845..19d6c14 100644 --- a/dot_config/nvim/lua/plugins.lua +++ b/dot_config/nvim/lua/plugins.lua @@ -606,6 +606,16 @@ return require('packer').startup({ end } + use { + 'xvzc/chezmoi.nvim', + requires = { 'nvim-lua/plenary.nvim' }, + config = function() + require("chezmoi").setup { + -- your configurations + } + end + } + use { 'gennaro-tedesco/nvim-jqx' } use { 'github/copilot.vim' } diff --git a/dot_config/nvim/lua/plugins/telescope.lua b/dot_config/nvim/lua/plugins/telescope.lua index 5a80baa..cdbad11 100644 --- a/dot_config/nvim/lua/plugins/telescope.lua +++ b/dot_config/nvim/lua/plugins/telescope.lua @@ -30,4 +30,8 @@ require('telescope').setup({ } }) -require('telescope').load_extension('fzf') +local telescope = require('telescope') + +telescope.load_extension('fzf') + +telescope.load_extension('chezmoi')