git clone --recursive https://github.com/vimuxx/.vim.git ~/.vim/ echo source ~/.vim/vimrc >> ~/.vimrc
LSP | bash | npm install -g bash-language-server |
c | apt install clangd |
|
python | npm install -g pyright |
|
cscope | apt install cscope |
|
cs | ln -s ~/.vim/pack/foo/start/cscope_maps.vim/cs ~/.local/bin/ |
|
git fetch git checkout origin/master git submodule update --init
(case sensitive)
LSP | LSP cmd | cscope | cscope cmd | ctags | ||||
---|---|---|---|---|---|---|---|---|
Code Action | :LspCodeAction |
|||||||
Call | Ctrl-\ C | :LspCallHierarchyIncoming |
Ctrl-\ c | :cs f c ... |
||||
Diagnostics | :LspDocumentDiagnostics |
|||||||
Egrep Pattern | :cs f e ... |
|||||||
File | Ctrl-\ f | :cs f f ... |
||||||
Definition | Ctrl-\ G | :LspDefinition |
Ctrl-\ g | :cs f g ... |
Ctrl-] | |||
Hover | Ctrl-\ H | :LspHover |
||||||
Hover Down | Ctrl-j | |||||||
Hover Up | Ctrl-k | |||||||
Snippet | Ctrl-l | |||||||
Rename | :LspRename |
|||||||
References | Ctrl-\ S | :LspReferences |
Ctrl-\ s | :cs f s ... |
||||
Status | :LspStatus |
|||||||
Text String | Ctrl-\ t | :cs f t ... |
||||||
Tag stack | Ctrl-t | |||||||
Insert mode (for linux kernel)
printk | level | color | ||
---|---|---|---|---|
PK! |
pr_alert | 1 | red | |
PK@ |
pr_crit | 2 | green | |
PK# |
pr_err | 3 | brown | |
PK$ |
pr_warn | 4 | blue | |
PK% |
pr_notice | 5 | magenta | |
PK^ |
pr_info | 6 | cyan | |
PK& |
WARN | white | ||
PK* |
print_hex_dump | |||
Additionally
One .clangd
example
CompileFlags: Remove: - -mabi=lp64 - -fconserve-stack - -fno-ipa-sra - -fno-var-tracking-assignments - -mno-thumb-interwork - -mno-sched-prolg - -mno-sched-prolog - -mapcs Diagnostics: Suppress: - '*'