mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 23:00:04 +08:00
Add option for disable smooth scrolling & fix css (#4387)
This commit is contained in:
parent
061de45b7b
commit
3b455c1b7f
@ -10,6 +10,8 @@ if exists('s:string_hi')
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
let s:enable_smooth_scrolling = 1
|
||||||
|
|
||||||
|
|
||||||
let s:SYS = SpaceVim#api#import('system')
|
let s:SYS = SpaceVim#api#import('system')
|
||||||
let s:FILE = SpaceVim#api#import('file')
|
let s:FILE = SpaceVim#api#import('file')
|
||||||
@ -70,6 +72,7 @@ function! SpaceVim#layers#core#config() abort
|
|||||||
noremap <silent> <F3> :NERDTreeToggle<CR>
|
noremap <silent> <F3> :NERDTreeToggle<CR>
|
||||||
endif
|
endif
|
||||||
let g:matchup_matchparen_status_offscreen = 0
|
let g:matchup_matchparen_status_offscreen = 0
|
||||||
|
let g:smoothie_no_default_mappings = !s:enable_smooth_scrolling
|
||||||
" Unimpaired bindings
|
" Unimpaired bindings
|
||||||
" Quickly add empty lines
|
" Quickly add empty lines
|
||||||
nnoremap <silent> [<Space> :<c-u>put! =repeat(nr2char(10), v:count1)<cr>
|
nnoremap <silent> [<Space> :<c-u>put! =repeat(nr2char(10), v:count1)<cr>
|
||||||
@ -921,6 +924,9 @@ function! SpaceVim#layers#core#set_variable(var) abort
|
|||||||
let g:_spacevim_filetree_show_hidden_files = get(a:var,
|
let g:_spacevim_filetree_show_hidden_files = get(a:var,
|
||||||
\ 'filetree_show_hidden',
|
\ 'filetree_show_hidden',
|
||||||
\ g:_spacevim_filetree_show_hidden_files)
|
\ g:_spacevim_filetree_show_hidden_files)
|
||||||
|
let s:enable_smooth_scrolling = get(a:var,
|
||||||
|
\ 'enable_smooth_scrolling',
|
||||||
|
\ s:enable_smooth_scrolling)
|
||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -643,19 +643,9 @@ a small {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style: none;
|
list-style: coral;
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
li {
|
|
||||||
padding-left: 1.3em;
|
|
||||||
}
|
|
||||||
li:before {
|
|
||||||
content: "●"; /* FontAwesome Unicode */
|
|
||||||
// font-family: FontAwesome;
|
|
||||||
display: inline-block;
|
|
||||||
margin-left: -1.3em; /* same as padding-left set on li */
|
|
||||||
width: 1.3em; /* same as padding-left set on li */
|
|
||||||
}
|
}
|
||||||
|
// ul { list-style-image: url("../images/bullet.png"); }
|
||||||
|
|
||||||
strong {
|
strong {
|
||||||
font-family: "OpenSansBold", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
|
font-family: "OpenSansBold", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
|
||||||
|
@ -26,9 +26,11 @@ nerdtree 或者 vimfiler,默认为 vimfiler,由 `filemanager` 选项控制
|
|||||||
## 模块配置
|
## 模块配置
|
||||||
|
|
||||||
- `filetree_show_hidden`: 在文件树内显示隐藏的文件,默认是 false。
|
- `filetree_show_hidden`: 在文件树内显示隐藏的文件,默认是 false。
|
||||||
|
- `enable_smooth_scrolling`: 启用或者禁用平滑滚屏快捷键,默认已启用。
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[layers]]
|
[[layers]]
|
||||||
name = 'core'
|
name = 'core'
|
||||||
filetree_show_hidden = true
|
filetree_show_hidden = true
|
||||||
|
enable_smooth_scrolling = true
|
||||||
```
|
```
|
||||||
|
@ -22,7 +22,6 @@ This is the core layer of SpaceVim, and it is loaded by default.
|
|||||||
|
|
||||||
### FileTree
|
### FileTree
|
||||||
|
|
||||||
|
|
||||||
The filetree plugin is included in core layer, by default `vimfiler` is used as filetree manager.
|
The filetree plugin is included in core layer, by default `vimfiler` is used as filetree manager.
|
||||||
To use nerdtree or defx, please add following snippet into your configuration file.
|
To use nerdtree or defx, please add following snippet into your configuration file.
|
||||||
|
|
||||||
@ -34,12 +33,12 @@ To use nerdtree or defx, please add following snippet into your configuration fi
|
|||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
- `filetree_show_hidden`: option for showing hidden file in filetree, disabled by default.
|
- `filetree_show_hidden`: option for showing hidden file in filetree, disabled by default.
|
||||||
|
- `enable_smooth_scrolling`: enable/disabled smooth scrolling key bindings, enabled by default.
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[layers]]
|
[[layers]]
|
||||||
name = 'core'
|
name = 'core'
|
||||||
filetree_show_hidden = true
|
filetree_show_hidden = true
|
||||||
|
enable_smooth_scrolling = true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user