feat: hide terminal line numbers
This commit is contained in:
parent
5e72b97e85
commit
d634051918
2 changed files with 10 additions and 1 deletions
|
@ -43,7 +43,7 @@ function _G.set_terminal_keymaps()
|
||||||
vim.api.nvim_buf_set_keymap(0, 't', '<C-l>', [[<C-\><C-n><C-W>l]], opts)
|
vim.api.nvim_buf_set_keymap(0, 't', '<C-l>', [[<C-\><C-n><C-W>l]], opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()')
|
vim.cmd('autocmd TermOpen term://* lua set_terminal_keymaps()')
|
||||||
|
|
||||||
-- buffer closing
|
-- buffer closing
|
||||||
nnoremap("<leader>q", ":Bdelete<CR>")
|
nnoremap("<leader>q", ":Bdelete<CR>")
|
||||||
|
|
|
@ -48,6 +48,15 @@ vim.cmd([[
|
||||||
augroup END
|
augroup END
|
||||||
]])
|
]])
|
||||||
|
|
||||||
|
-- configure terminal
|
||||||
|
vim.cmd([[
|
||||||
|
augroup terminal_setup
|
||||||
|
autocmd!
|
||||||
|
autocmd TermOpen * startinsert
|
||||||
|
autocmd TermOpen * setlocal nonumber norelativenumber
|
||||||
|
augroup END
|
||||||
|
]])
|
||||||
|
|
||||||
-- coq.nvim
|
-- coq.nvim
|
||||||
vim.g.coq_settings = {
|
vim.g.coq_settings = {
|
||||||
auto_start = "shut-up",
|
auto_start = "shut-up",
|
||||||
|
|
Loading…
Reference in a new issue