nvim: configure neogit
This commit is contained in:
parent
111025f389
commit
81c0b21d48
3 changed files with 10 additions and 1 deletions
|
@ -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)
|
||||
|
|
2
home/config/nvim/plugins/neogit.fnl
Normal file
2
home/config/nvim/plugins/neogit.fnl
Normal file
|
@ -0,0 +1,2 @@
|
|||
(let [neogit (require :neogit)]
|
||||
(neogit.setup {}))
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue