mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:40:03 +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
|
||||
endif
|
||||
|
||||
let s:enable_smooth_scrolling = 1
|
||||
|
||||
|
||||
let s:SYS = SpaceVim#api#import('system')
|
||||
let s:FILE = SpaceVim#api#import('file')
|
||||
@ -70,6 +72,7 @@ function! SpaceVim#layers#core#config() abort
|
||||
noremap <silent> <F3> :NERDTreeToggle<CR>
|
||||
endif
|
||||
let g:matchup_matchparen_status_offscreen = 0
|
||||
let g:smoothie_no_default_mappings = !s:enable_smooth_scrolling
|
||||
" Unimpaired bindings
|
||||
" Quickly add empty lines
|
||||
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,
|
||||
\ 'filetree_show_hidden',
|
||||
\ g:_spacevim_filetree_show_hidden_files)
|
||||
let s:enable_smooth_scrolling = get(a:var,
|
||||
\ 'enable_smooth_scrolling',
|
||||
\ s:enable_smooth_scrolling)
|
||||
|
||||
endfunction
|
||||
|
||||
|
@ -643,19 +643,9 @@ a small {
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
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 */
|
||||
list-style: coral;
|
||||
}
|
||||
// ul { list-style-image: url("../images/bullet.png"); }
|
||||
|
||||
strong {
|
||||
font-family: "OpenSansBold", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
|
||||
|
@ -26,9 +26,11 @@ nerdtree 或者 vimfiler,默认为 vimfiler,由 `filemanager` 选项控制
|
||||
## 模块配置
|
||||
|
||||
- `filetree_show_hidden`: 在文件树内显示隐藏的文件,默认是 false。
|
||||
- `enable_smooth_scrolling`: 启用或者禁用平滑滚屏快捷键,默认已启用。
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = 'core'
|
||||
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
|
||||
|
||||
|
||||
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.
|
||||
|
||||
@ -34,12 +33,12 @@ To use nerdtree or defx, please add following snippet into your configuration fi
|
||||
## Configuration
|
||||
|
||||
- `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
|
||||
[[layers]]
|
||||
name = 'core'
|
||||
filetree_show_hidden = true
|
||||
enable_smooth_scrolling = true
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user