diff options
| author | pml68 <tutorialmester@gmail.com> | 2024-05-02 17:32:34 +0200 |
|---|---|---|
| committer | pml68 <tutorialmester@gmail.com> | 2024-05-02 17:32:34 +0200 |
| commit | d2ded00f063e6ba1f6e9f42aeda14cb684ddd875 (patch) | |
| tree | c17303c904e5d393c848b97c8abad63f054e10b6 /lua/pml68/configs | |
| parent | fix: remove accidental User FilePost events causing plugins to never load (diff) | |
| download | nvim-d2ded00f063e6ba1f6e9f42aeda14cb684ddd875.tar.gz | |
feat: remove lazygit term, get **best possible** startup time down to 16ms
Diffstat (limited to '')
| -rw-r--r-- | lua/pml68/configs/telescope.lua | 7 | ||||
| -rw-r--r-- | lua/pml68/configs/toggleterm.lua | 15 |
2 files changed, 0 insertions, 22 deletions
diff --git a/lua/pml68/configs/telescope.lua b/lua/pml68/configs/telescope.lua deleted file mode 100644 index 54ddb0e..0000000 --- a/lua/pml68/configs/telescope.lua +++ /dev/null @@ -1,7 +0,0 @@ -local builtin = require("telescope.builtin") -vim.keymap.set('n', '<leader>ff', builtin.find_files, {}) -vim.keymap.set('n', '<leader>fw', builtin.live_grep, {}) -vim.keymap.set('n', '<leader>fb', builtin.buffers, {}) -vim.keymap.set('n', '<leader>fh', builtin.help_tags, {}) -vim.keymap.set('n', '<leader>fz', builtin.current_buffer_fuzzy_find, {}) -vim.keymap.set('n', '<leader>fg', builtin.git_files, {}) diff --git a/lua/pml68/configs/toggleterm.lua b/lua/pml68/configs/toggleterm.lua index e2681b5..4f5ca6e 100644 --- a/lua/pml68/configs/toggleterm.lua +++ b/lua/pml68/configs/toggleterm.lua @@ -1,18 +1,3 @@ -local Terminal = require('toggleterm.terminal').Terminal -local lazygit = Terminal:new({ - cmd = "lazygit", - hidden = true, - direction = "float", - float_opts = { - border = "double", - }, -}) - -function _lazygit_toggle() - lazygit:toggle() -end - -vim.keymap.set("n", "<leader>g", "<cmd> lua _lazygit_toggle() <CR>", { noremap = true, silent = true }) function _G.set_terminal_keymaps() local opts = { buffer = 0 } vim.keymap.set('t', '<C-x>', [[<C-\><C-n>]], opts) |
