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)
|
telescope-dropdown (telescope-themes.get_dropdown)
|
||||||
npairs (require :nvim-autopairs)
|
npairs (require :nvim-autopairs)
|
||||||
gitsigns (require :gitsigns)
|
gitsigns (require :gitsigns)
|
||||||
|
neogit (require :neogit)
|
||||||
wk (require :which-key)
|
wk (require :which-key)
|
||||||
repl (require :nifoc.repl)
|
repl (require :nifoc.repl)
|
||||||
formatting (require :nifoc.formatting)]
|
formatting (require :nifoc.formatting)]
|
||||||
|
@ -32,7 +33,7 @@
|
||||||
#(telescope-builtin.treesitter telescope-dropdown)
|
#(telescope-builtin.treesitter telescope-dropdown)
|
||||||
{:desc "Find via Treesitter"})
|
{:desc "Find via Treesitter"})
|
||||||
(keymap.set :n :<leader>pt :<cmd>TodoTelescope<CR> {:desc "TODO Comments"})
|
(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"})
|
{:desc "VCS Status"})
|
||||||
(keymap.set :n :<leader>vb
|
(keymap.set :n :<leader>vb
|
||||||
#(telescope-builtin.git_branches telescope-dropdown)
|
#(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;
|
config = builtins.readFile ../../config/nvim/plugins/which-key.fnl;
|
||||||
type = "fennel";
|
type = "fennel";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
plugin = neogit;
|
||||||
|
config = builtins.readFile ../../config/nvim/plugins/neogit.fnl;
|
||||||
|
type = "fennel";
|
||||||
|
}
|
||||||
] ++ optionals isDarwin [
|
] ++ optionals isDarwin [
|
||||||
{
|
{
|
||||||
plugin = pkgs.vimPlugins.cmp-tabnine;
|
plugin = pkgs.vimPlugins.cmp-tabnine;
|
||||||
|
|
Loading…
Reference in a new issue