Skip to content

Commit

Permalink
add neovim config for chezmoi
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Oct 14, 2024
1 parent 16923f0 commit 0a74ea9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions dot_config/nvim/lua/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ nnoremap("<leader>xp",
nnoremap("<leader>xP", "<Cmd>PackerSync<CR>")

nnoremap("<leader>gg", "<Cmd>Neogit<CR>")
nnoremap("<leader>gf", "<Cmd>lua require('telescope').extensions.chezmoi.find_files()<CR>")

-- Show line diagnostics
nnoremap("<leader>d",
Expand Down
10 changes: 10 additions & 0 deletions dot_config/nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down
6 changes: 5 additions & 1 deletion dot_config/nvim/lua/plugins/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ require('telescope').setup({
}
})

require('telescope').load_extension('fzf')
local telescope = require('telescope')

telescope.load_extension('fzf')

telescope.load_extension('chezmoi')

0 comments on commit 0a74ea9

Please sign in to comment.