feat: hide terminal line numbers

This commit is contained in:
mandlm 2022-03-17 10:21:24 +01:00
parent 5e72b97e85
commit d634051918
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
2 changed files with 10 additions and 1 deletions

View File

@ -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>")

View File

@ -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",