nvim: Add telescope-toggleterm
This commit is contained in:
parent
93d5fcad2f
commit
ef775d615c
3 changed files with 8 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
telescope-builtin (require :telescope.builtin)
|
||||
telescope-themes (require :telescope.themes)
|
||||
telescope-nifoc (require :nifoc.telescope)
|
||||
telescope-toggleterm (require :telescope-toggleterm)
|
||||
telescope-ivy (telescope-themes.get_ivy)
|
||||
telescope-dropdown (telescope-themes.get_dropdown)
|
||||
npairs (require :nvim-autopairs)
|
||||
|
@ -30,6 +31,9 @@
|
|||
{:description "Toggle Undotree"})
|
||||
(map-entry :<leader>c repl.toggle-shell
|
||||
{:description "Toggle Shell"})
|
||||
(map-entry :<leader>cs
|
||||
#(telescope-toggleterm.open telescope-dropdown)
|
||||
{:description "Select Terminal"})
|
||||
(map-entry :<leader>r repl.toggle-repl
|
||||
{:description "Toggle REPL"})
|
||||
;; Buffer
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
:mappings {:i {:<esc> actions.close}}}
|
||||
:extensions {:ui-select [(themes.get_dropdown {})]}})
|
||||
(telescope.load_extension :ui-select)
|
||||
(telescope.load_extension :toggleterm)
|
||||
(let [augroup (vim.api.nvim_create_augroup :NifocTelescope {:clear true})
|
||||
aucmd vim.api.nvim_create_autocmd]
|
||||
(aucmd :FileType {:pattern :TelescopePrompt
|
||||
|
@ -26,3 +27,4 @@
|
|||
(set vim.opt_local.relativenumber false)
|
||||
(set vim.opt_local.wrap true))
|
||||
:group augroup})))
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
(set vim.opt_local.number false)
|
||||
(set vim.opt_local.relativenumber false)
|
||||
(set vim.opt_local.cursorline false)
|
||||
(vim.api.nvim_buf_set_var opts.buf
|
||||
:toggle_line_style 0)
|
||||
(keymap.terminal-open opts.buf))
|
||||
:group augroup})))
|
||||
|
||||
|
|
Loading…
Reference in a new issue