From 812687c092f40067e8e01a949f2a3a399462e4fd Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 4 Oct 2022 22:20:35 +0200 Subject: Add size to toggleterm --- fnl/config/toggleterm.fnl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fnl/config/toggleterm.fnl b/fnl/config/toggleterm.fnl index cfc9a33..329964c 100644 --- a/fnl/config/toggleterm.fnl +++ b/fnl/config/toggleterm.fnl @@ -2,7 +2,7 @@ (module config.toggleterm {autoload {: util nvim aniseed.nvim autocmd config.autocmd}}) -(def- opts {:shade_terminals false}) +(def- opts {:size 16 :shade_terminals false}) (defn- set-terminal-keymaps [] (nvim.set_keymap :t : "wincmd h" {}) -- cgit v1.2.3-70-g09d2 From b759110c04803ac9fdd734f3a9c0e6bca82de908 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 4 Oct 2022 22:20:55 +0200 Subject: Add keymap for saving session --- fnl/config/which-key.fnl | 1 + 1 file changed, 1 insertion(+) diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl index b386ca0..0c8ee7e 100644 --- a/fnl/config/which-key.fnl +++ b/fnl/config/which-key.fnl @@ -50,6 +50,7 @@ "Harpoon Prev"] :t ["Telescope harpoon marks" "Search Files"] :v ["lua vim.lsp.buf.rename()" :Rename] + :p ["SaveSession" "Save Session"] :r ["lua require('harpoon.ui').toggle_quick_menu()" "Harpoon UI"]}) -- cgit v1.2.3-70-g09d2 From 66a8bf1ac557b579fac4099affcdca2ee0764e78 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 5 Oct 2022 22:08:23 +0200 Subject: Add diffview --- fnl/config/diffview.fnl | 6 ++++++ fnl/config/init.fnl | 1 + fnl/config/which-key.fnl | 2 ++ fnl/plugins.fnl | 1 + 4 files changed, 10 insertions(+) create mode 100644 fnl/config/diffview.fnl diff --git a/fnl/config/diffview.fnl b/fnl/config/diffview.fnl new file mode 100644 index 0000000..eea5ed3 --- /dev/null +++ b/fnl/config/diffview.fnl @@ -0,0 +1,6 @@ +;; Trim whitespaces on save. +(module config.diffview {autoload {: util}}) + +(def- opts {}) + +(util.use-config :diffview opts) diff --git a/fnl/config/init.fnl b/fnl/config/init.fnl index b350dfa..b752361 100644 --- a/fnl/config/init.fnl +++ b/fnl/config/init.fnl @@ -9,6 +9,7 @@ config.colorizer config.colorscheme config.comment + config.diffview config.fidget config.gitsigns config.harpoon diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl index 0c8ee7e..1d196fa 100644 --- a/fnl/config/which-key.fnl +++ b/fnl/config/which-key.fnl @@ -78,6 +78,8 @@ :C ["Telescope commands" :Commands]}) (def- git {:name :Git + :d ["DiffviewOpen" "Diffview"] + :D ["DiffviewFileHistory" "DiffviewFileHistory"] :j ["lua require 'gitsigns'.next_hunk()" "Next Hunk"] :k ["lua require 'gitsigns'.prev_hunk()" "Prev Hunk"] :l ["lua require 'gitsigns'.blame_line()" :Blame] diff --git a/fnl/plugins.fnl b/fnl/plugins.fnl index 6fd3da9..93c87f6 100644 --- a/fnl/plugins.fnl +++ b/fnl/plugins.fnl @@ -11,6 +11,7 @@ :hrsh7th/cmp-path {} :saadparwaiz1/cmp_luasnip {} :numToStr/Comment.nvim {} + :sindrets/diffview.nvim {} :j-hui/fidget.nvim {} :rafamadriz/friendly-snippets {} :lewis6991/gitsigns.nvim {} -- cgit v1.2.3-70-g09d2