added more notes on vim and neovim config files
This commit is contained in:
parent
f3aa8e04ae
commit
49423d2081
3 changed files with 109 additions and 3 deletions
|
|
@ -4,5 +4,103 @@
|
|||
"javascript",
|
||||
"typescript",
|
||||
"json"
|
||||
]
|
||||
],
|
||||
"languageserver": {
|
||||
"bash": {
|
||||
"command": "bash-language-server",
|
||||
"args": ["start"],
|
||||
"filetypes": ["sh"]
|
||||
},
|
||||
"clangd": {
|
||||
"command": "clangd",
|
||||
"rootPatterns": ["compile_flags.txt", "compile_commands.json"],
|
||||
"filetypes": ["c", "cc", "cpp", "c++", "objc", "objcpp"]
|
||||
},
|
||||
"sql": {
|
||||
"command": "sql-language-server",
|
||||
"args": ["up", "--method", "stdio"],
|
||||
"filetypes": ["sql", "mysql"]
|
||||
},
|
||||
"dockerfile": {
|
||||
"command": "docker-langserver",
|
||||
"filetypes": ["dockerfile"],
|
||||
"args": ["--stdio"]
|
||||
},
|
||||
"graphql": {
|
||||
"command": "graphql-lsp",
|
||||
"args": ["server", "-m", "stream"],
|
||||
"filetypes": ["typescript", "typescriptreact", "graphql"]
|
||||
},
|
||||
"rust": {
|
||||
"command": "rust-analyzer",
|
||||
"filetypes": ["rust"],
|
||||
"rootPatterns" ["Cargo.toml"]
|
||||
},
|
||||
"python": {
|
||||
"command": "python",
|
||||
"args": [
|
||||
"-mpyls",
|
||||
"-vv",
|
||||
"--log-file",
|
||||
"/tmp/lsp_python.log"
|
||||
],
|
||||
"trace.server": "verbose",
|
||||
"filetypes": [
|
||||
"python"
|
||||
],
|
||||
"settings": {
|
||||
"pyls": {
|
||||
"enable": true,
|
||||
"trace": {
|
||||
"server": "verbose"
|
||||
},
|
||||
"commandPath": "",
|
||||
"configurationSources": [
|
||||
"pycodestyle"
|
||||
],
|
||||
"plugins": {
|
||||
"jedi_completion": {
|
||||
"enabled": true
|
||||
},
|
||||
"jedi_hover": {
|
||||
"enabled": true
|
||||
},
|
||||
"jedi_references": {
|
||||
"enabled": true
|
||||
},
|
||||
"jedi_signature_help": {
|
||||
"enabled": true
|
||||
},
|
||||
"jedi_symbols": {
|
||||
"enabled": true,
|
||||
"all_scopes": true
|
||||
},
|
||||
"mccabe": {
|
||||
"enabled": true,
|
||||
"threshold": 15
|
||||
},
|
||||
"preload": {
|
||||
"enabled": true
|
||||
},
|
||||
"pycodestyle": {
|
||||
"enabled": true
|
||||
},
|
||||
"pydocstyle": {
|
||||
"enabled": false,
|
||||
"match": "(?!test_).*\\.py",
|
||||
"matchDir": "[^\\.].*"
|
||||
},
|
||||
"pyflakes": {
|
||||
"enabled": true
|
||||
},
|
||||
"rope_completion": {
|
||||
"enabled": true
|
||||
},
|
||||
"yapf": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ call plug#end()
|
|||
|
||||
inoremap jk <ESC>
|
||||
nmap <C-n> :NERDTreeToggle<CR>
|
||||
vmap ++ <plug>NERDCommenterToggle
|
||||
nmap ++ <plug>NERDCommenterToggle
|
||||
vmap ++ plug>NERDCommenterToggle
|
||||
nmap ++ plug>NERDCommenterToggle
|
||||
|
||||
" open NERDTree automatically
|
||||
autocmd StdinReadPre * let s:std_in=1
|
||||
|
|
@ -52,6 +52,10 @@ let g:NERDTreeGitStatusWithFlags = 1
|
|||
|
||||
let g:NERDTreeIgnore = ['^node_modules$']
|
||||
|
||||
"call s:initVariable("g:NERDTreeWinPos", "left") "default
|
||||
"call s:initVariable("g:NERDTreeWinPos", right)
|
||||
|
||||
|
||||
" vim-prettier
|
||||
"let g:prettier#quickfix_enabled = 0
|
||||
"let g:prettier#quickfix_auto_focus = 0
|
||||
|
|
|
|||
|
|
@ -74,6 +74,10 @@ CTRL + F (Page Down)
|
|||
|
||||
:%s/word_to_replace/new_word/g
|
||||
|
||||
# Running Bash Commands from within Vim:
|
||||
|
||||
:! <bash command>
|
||||
|
||||
# Dealing with multiple files:
|
||||
|
||||
# You can open multiple files by simply typing them in sequentially after the vim command(tab auto complete works on this):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue