Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/h-hg/bettertermconfig.nvim
https://github.com/h-hg/bettertermconfig.nvim
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/h-hg/bettertermconfig.nvim
- Owner: h-hg
- License: mit
- Created: 2022-07-09T09:43:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-09T10:15:47.000Z (over 2 years ago)
- Last Synced: 2023-03-04T22:41:22.134Z (almost 2 years ago)
- Language: Lua
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Better Config for Neovim Terminal
This is a simple plugin of neovim that prvoides some preset configuration for terminal.
## What can it do?
1. Use `` to switch to NORMAL mode as if you were editing a general file.
2. Use `` + key (`h`, `j`. `k`, `l` and so on) to switch window as if you were in a general window.
3. Automatically enter the TERMINAL mode when you enter the terminal.
4. Dont't show the line number when in TERMINAL mode or the terminal window loses focus.
5. You can set terminal to show line numbers or not when in NORMAL mode.## Requirement
- Neovim >= 0.7.2
## Configuration
For [packer](https://github.com/wbthomason/packer.nvim) user:
```lua
require('packer').startup(function(use)
use {
'h-hg/BetterTermConfig.nvim',
config = function()
require('bettertermconfig').setup {
-- write your configuration here
}
end
}
end)
```The default configuration
```lua
{
keymap = {
esc = true, -- whether use to switch to NORMAL mode
cw = true, -- whether use + key to switch window
},
normal = {
nu = true, -- whether show line number of terminal in NORMAL mode
rnu = true,-- whether show relative line number of terminal in NORMAL mode
},
}
```