mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-20 18:54:25 +02:00
silent keymappings, less themes
This commit is contained in:
parent
102530aec6
commit
6d157bb63a
3 changed files with 32 additions and 22 deletions
|
@ -1,7 +1,12 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
// suggestions
|
// suggestions
|
||||||
// "suggest.echodocSupport": true,
|
// "suggest.echodocSupport": true,
|
||||||
|
// TODO add more labels and give them cool glyphs
|
||||||
|
"suggest.completionItemKindLabels": {
|
||||||
|
"text": "t",
|
||||||
|
"method": "m",
|
||||||
|
"function": "f"
|
||||||
|
},
|
||||||
|
|
||||||
// diagnostics
|
// diagnostics
|
||||||
"diagnostic.errorSign": "✗",
|
"diagnostic.errorSign": "✗",
|
||||||
|
@ -18,7 +23,16 @@
|
||||||
"list.selectedSignText": " ",
|
"list.selectedSignText": " ",
|
||||||
|
|
||||||
// autoformat
|
// autoformat
|
||||||
"coc.preferences.formatOnSaveFiletypes": ["css", "markdown", "javascript", "graphql", "html", "yaml", "json", "python"],
|
"coc.preferences.formatOnSaveFiletypes": [
|
||||||
|
"css",
|
||||||
|
"markdown",
|
||||||
|
"javascript",
|
||||||
|
"graphql",
|
||||||
|
"html",
|
||||||
|
"yaml",
|
||||||
|
"json",
|
||||||
|
"python"
|
||||||
|
],
|
||||||
"coc.preferences.hoverTarget": "float",
|
"coc.preferences.hoverTarget": "float",
|
||||||
|
|
||||||
// python config
|
// python config
|
||||||
|
@ -26,23 +40,19 @@
|
||||||
"python.linting.pylintEnabled": true,
|
"python.linting.pylintEnabled": true,
|
||||||
|
|
||||||
// snippets
|
// snippets
|
||||||
"snippets.ultisnips.directories":
|
"snippets.ultisnips.directories": ["UltiSnips", "~/.config/nvim/utils/snips"],
|
||||||
[
|
|
||||||
"UltiSnips",
|
|
||||||
"~/.config/nvim/utils/snips"
|
|
||||||
],
|
|
||||||
|
|
||||||
// explorer
|
// explorer
|
||||||
"explorer.width": 30,
|
"explorer.width": 30,
|
||||||
"explorer.icon.enableNerdfont": true,
|
"explorer.icon.enableNerdfont": true,
|
||||||
"explorer.previewAction.onHover": false,
|
"explorer.previewAction.onHover": false,
|
||||||
"explorer.icon.enableVimDevicons": true,
|
"explorer.icon.enableVimDevicons": false,
|
||||||
"explorer.keyMappings": {
|
"explorer.keyMappings": {
|
||||||
"<cr>": ["expandable?", "expand", "open"],
|
"<cr>": ["expandable?", "expand", "open"],
|
||||||
"v": "open:vsplit"
|
"v": "open:vsplit"
|
||||||
},
|
},
|
||||||
|
|
||||||
"languageserver":{
|
"languageserver": {
|
||||||
"bash": {
|
"bash": {
|
||||||
"command": "bash-language-server",
|
"command": "bash-language-server",
|
||||||
"args": ["start"],
|
"args": ["start"],
|
||||||
|
|
|
@ -27,18 +27,18 @@ else
|
||||||
" nnoremap <c-u> viwU<Esc>
|
" nnoremap <c-u> viwU<Esc>
|
||||||
|
|
||||||
" TAB in general mode will move to text buffer
|
" TAB in general mode will move to text buffer
|
||||||
nnoremap <TAB> :bnext<CR>
|
nnoremap <silent> <TAB> :bnext<CR>
|
||||||
" SHIFT-TAB will go back
|
" SHIFT-TAB will go back
|
||||||
nnoremap <S-TAB> :bprevious<CR>
|
nnoremap <silent> <S-TAB> :bprevious<CR>
|
||||||
|
|
||||||
" Alternate way to save
|
" Alternate way to save
|
||||||
nnoremap <C-s> :w<CR>
|
nnoremap <silent> <C-s> :w<CR>
|
||||||
" Alternate way to quit
|
" Alternate way to quit
|
||||||
nnoremap <C-Q> :wq!<CR>
|
nnoremap <silent> <C-Q> :wq!<CR>
|
||||||
" Use control-c instead of escape
|
" Use control-c instead of escape
|
||||||
nnoremap <C-c> <Esc>
|
nnoremap <silent> <C-c> <Esc>
|
||||||
" <TAB>: completion.
|
" <TAB>: completion.
|
||||||
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
inoremap <silent> <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
||||||
|
|
||||||
|
|
||||||
" Better window navigation
|
" Better window navigation
|
||||||
|
@ -48,9 +48,9 @@ else
|
||||||
nnoremap <C-l> <C-w>l
|
nnoremap <C-l> <C-w>l
|
||||||
|
|
||||||
" Use alt + hjkl to resize windows
|
" Use alt + hjkl to resize windows
|
||||||
nnoremap <M-j> :resize -2<CR>
|
nnoremap <silent> <M-j> :resize -2<CR>
|
||||||
nnoremap <M-k> :resize +2<CR>
|
nnoremap <silent> <M-k> :resize +2<CR>
|
||||||
nnoremap <M-h> :vertical resize -2<CR>
|
nnoremap <silent> <M-h> :vertical resize -2<CR>
|
||||||
nnoremap <M-l> :vertical resize +2<CR>
|
nnoremap <silent> <M-l> :vertical resize +2<CR>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -47,13 +47,13 @@ call plug#begin('~/.config/nvim/autoload/plugged')
|
||||||
Plug 'alvan/vim-closetag'
|
Plug 'alvan/vim-closetag'
|
||||||
" Themes
|
" Themes
|
||||||
Plug 'christianchiarulli/onedark.vim'
|
Plug 'christianchiarulli/onedark.vim'
|
||||||
Plug 'kaicataldo/material.vim'
|
" Plug 'kaicataldo/material.vim'
|
||||||
Plug 'NLKNguyen/papercolor-theme'
|
" Plug 'NLKNguyen/papercolor-theme'
|
||||||
" Intellisense
|
" Intellisense
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
" Status Line
|
" Status Line
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
" Plug 'vim-airline/vim-airline-themes'
|
||||||
" Ranger
|
" Ranger
|
||||||
Plug 'francoiscabrol/ranger.vim'
|
Plug 'francoiscabrol/ranger.vim'
|
||||||
Plug 'rbgrouleff/bclose.vim'
|
Plug 'rbgrouleff/bclose.vim'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue