1
0
Fork 0

nvim: configure neogit

This commit is contained in:
Daniel Kempkens 2023-12-29 01:26:11 +01:00
parent 111025f389
commit 81c0b21d48
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
3 changed files with 10 additions and 1 deletions

View file

@ -8,6 +8,7 @@
telescope-dropdown (telescope-themes.get_dropdown)
npairs (require :nvim-autopairs)
gitsigns (require :gitsigns)
neogit (require :neogit)
wk (require :which-key)
repl (require :nifoc.repl)
formatting (require :nifoc.formatting)]
@ -32,7 +33,7 @@
#(telescope-builtin.treesitter telescope-dropdown)
{:desc "Find via Treesitter"})
(keymap.set :n :<leader>pt :<cmd>TodoTelescope<CR> {:desc "TODO Comments"})
(keymap.set :n :<leader>vs #(telescope-builtin.git_status telescope-ivy)
(keymap.set :n :<leader>vs #(neogit.open {:kind :split})
{:desc "VCS Status"})
(keymap.set :n :<leader>vb
#(telescope-builtin.git_branches telescope-dropdown)

View file

@ -0,0 +1,2 @@
(let [neogit (require :neogit)]
(neogit.setup {}))

View file

@ -332,6 +332,12 @@ in
config = builtins.readFile ../../config/nvim/plugins/which-key.fnl;
type = "fennel";
}
{
plugin = neogit;
config = builtins.readFile ../../config/nvim/plugins/neogit.fnl;
type = "fennel";
}
] ++ optionals isDarwin [
{
plugin = pkgs.vimPlugins.cmp-tabnine;