mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 09:18:44 +02:00
add: disable line number if terminal mode
This commit is contained in:
parent
7a1e430fee
commit
b302971eb3
3 changed files with 12 additions and 2 deletions
|
@ -33,6 +33,16 @@ vim.cmd([[
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd User AlphaReady set showtabline=0 | autocmd BufUnload <buffer> set showtabline=2
|
autocmd User AlphaReady set showtabline=0 | autocmd BufUnload <buffer> set showtabline=2
|
||||||
augroup end
|
augroup end
|
||||||
|
|
||||||
|
augroup neovim_terminal
|
||||||
|
autocmd!
|
||||||
|
" Enter Terminal-mode (insert) automatically
|
||||||
|
autocmd TermOpen * startinsert
|
||||||
|
" Disables number lines on terminal buffers
|
||||||
|
autocmd TermOpen * :set nonumber norelativenumber
|
||||||
|
" allows you to use Ctrl-c on terminal window
|
||||||
|
autocmd TermOpen * nnoremap <buffer> <C-c> i<C-c>
|
||||||
|
augroup END
|
||||||
]])
|
]])
|
||||||
|
|
||||||
-- for fix error last close buffer
|
-- for fix error last close buffer
|
||||||
|
|
|
@ -62,7 +62,7 @@ keymap("n", "<C-_>", "<esc><cmd>lua require('Comment.api').toggle.linewise.curre
|
||||||
-- keymap("i", "<C-l>", "<esc><cmd>lua _LIVE_SERVER()<cr>", opts)
|
-- keymap("i", "<C-l>", "<esc><cmd>lua _LIVE_SERVER()<cr>", opts)
|
||||||
|
|
||||||
-- ALT + l to open terminal and run live-server
|
-- ALT + l to open terminal and run live-server
|
||||||
keymap("n", "<A-l>", "<cmd>terminal<cr>$i<Right>live-server<cr>", opts)
|
keymap("n", "<A-l>", "<cmd>terminal<cr>live-server<cr>", opts)
|
||||||
|
|
||||||
-- Resize with arrows
|
-- Resize with arrows
|
||||||
-- cona
|
-- cona
|
||||||
|
|
|
@ -327,7 +327,7 @@ local mappings = {
|
||||||
r = { "<cmd>RunCode<CR>", "Run Code" },
|
r = { "<cmd>RunCode<CR>", "Run Code" },
|
||||||
f = { "<cmd>RunFile<CR>", "Run File" },
|
f = { "<cmd>RunFile<CR>", "Run File" },
|
||||||
p = { "<cmd>RunProject<CR>", "Run Project" },
|
p = { "<cmd>RunProject<CR>", "Run Project" },
|
||||||
g = { "<cmd>terminal<cr>$i<Right>gradle run<cr>" .. trn, "Run Gradle" },
|
g = { "<cmd>terminal<cr>gradle run<cr>", "Run Gradle" },
|
||||||
m = {
|
m = {
|
||||||
"<cmd>ToggleTerm size=70 direction=float<cr>mvn exec:java -Dexec.mainClass=com.pojokcode.App<cr>",
|
"<cmd>ToggleTerm size=70 direction=float<cr>mvn exec:java -Dexec.mainClass=com.pojokcode.App<cr>",
|
||||||
"Run MVN",
|
"Run MVN",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue