Compare commits
2 Commits
coc
...
65a870fe98
| Author | SHA1 | Date | |
|---|---|---|---|
| 65a870fe98 | |||
| 20f8e92ab4 |
@@ -75,7 +75,7 @@ font:
|
|||||||
use_thin_strokes: true
|
use_thin_strokes: true
|
||||||
|
|
||||||
# Should display the render timer
|
# Should display the render timer
|
||||||
render_timer: false
|
# render_timer: false
|
||||||
|
|
||||||
# Colors (Pencil Dark)
|
# Colors (Pencil Dark)
|
||||||
# colors:
|
# colors:
|
||||||
|
|||||||
@@ -1,41 +0,0 @@
|
|||||||
{
|
|
||||||
"languageserver": {
|
|
||||||
"haskell": {
|
|
||||||
"command": "hie-wrapper",
|
|
||||||
"args": ["--lsp"],
|
|
||||||
"filetypes": [ "haskell" ],
|
|
||||||
"rootPatterns": [ ".git", "stack.yaml" ]
|
|
||||||
},
|
|
||||||
"rust": {
|
|
||||||
"command": "rustup",
|
|
||||||
"args": ["run", "stable", "rls" ],
|
|
||||||
"filetypes": [ "rust" ],
|
|
||||||
"rootPatterns": [ ".git", "cargo.toml" ]
|
|
||||||
},
|
|
||||||
"clangd": {
|
|
||||||
"command": "clangd",
|
|
||||||
"filetypes": [ "c", "cpp" ],
|
|
||||||
"rootPatterns": [".git"]
|
|
||||||
},
|
|
||||||
"crystal": {
|
|
||||||
"command": "scry",
|
|
||||||
"filetypes": [ "crystal" ],
|
|
||||||
"rootPatterns": [".git", "shard.yml"]
|
|
||||||
},
|
|
||||||
"javascript": {
|
|
||||||
"command": "javascript-typescript-stdio",
|
|
||||||
"filetypes": [ "javascript" ],
|
|
||||||
"rootPatterns": [".git" ]
|
|
||||||
},
|
|
||||||
"elm": {
|
|
||||||
"command": "elm-language-server",
|
|
||||||
"args": ["--stdio"],
|
|
||||||
"filetypes": ["elm"],
|
|
||||||
"rootPatterns": [".git", "elm.json"],
|
|
||||||
"initializationOptions": {
|
|
||||||
"runtime": "node",
|
|
||||||
"elmPath": "elm"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
call plug#begin('~/.config/nvim/plugged')
|
call plug#begin('~/.config/nvim/plugged')
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'roxma/nvim-yarp'
|
||||||
|
Plug 'ncm2/ncm2'
|
||||||
|
Plug 'autozimu/LanguageClient-neovim', {'branch': 'next', 'do': 'bash install.sh' }
|
||||||
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --bin' }
|
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --bin' }
|
||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
|
|
||||||
@@ -21,7 +23,29 @@ set number " Set line numbers
|
|||||||
set mouse=a " Allow mouse
|
set mouse=a " Allow mouse
|
||||||
set signcolumn=yes " Always show extra column
|
set signcolumn=yes " Always show extra column
|
||||||
|
|
||||||
|
autocmd BufEnter * call ncm2#enable_for_buffer() " Enable ncm2 for all buffers
|
||||||
autocmd BufRead,BufNewFile *.v set filetype=coq " Coq is not Verilog
|
autocmd BufRead,BufNewFile *.v set filetype=coq " Coq is not Verilog
|
||||||
autocmd FileType crystal setlocal shiftwidth=2 " Crystal likes 2-wide indent
|
autocmd FileType crystal setlocal shiftwidth=2 " Crystal likes 2-wide indent
|
||||||
|
|
||||||
|
set completeopt=noinsert,menuone
|
||||||
|
|
||||||
|
let g:LanguageClient_serverCommands = {
|
||||||
|
\ 'haskell': ['hie', '--lsp'],
|
||||||
|
\ 'rust': ['rustup', 'run', 'stable', 'rls'],
|
||||||
|
\ 'c': ['clangd'],
|
||||||
|
\ 'crystal': ['scry'],
|
||||||
|
\ 'cpp': ['clangd'],
|
||||||
|
\ 'javascript': ['javascript-typescript-stdio'],
|
||||||
|
\ 'elm': ['elm-language-server', '--stdio']
|
||||||
|
\ }
|
||||||
|
let g:deoplete#enable_at_startup = 1
|
||||||
|
let g:LanguageClient_diagnosticsDisplay = {
|
||||||
|
\ 1: {"name": "Error","texthl": "ALEError","signText": ">>","signTexthl": "ALEErrorSign",},
|
||||||
|
\ 2: {"name": "Warning","texthl": "ALEWarning","signText": ">>","signTexthl": "ALEWarningSign",},
|
||||||
|
\ 3: {"name": "Information","texthl": "ALEInfo","signText": ">>","signTexthl": "ALEInfoSign",},
|
||||||
|
\ 4: {"name": "Hint","texthl": "ALEInfo","signText": ">>","signTexthl": "ALEInfoSign",},}
|
||||||
|
let g:LanguageClient_rootMarkers = {
|
||||||
|
\ 'haskell': ['.git'],
|
||||||
|
\ 'elm': ['elm.json'],
|
||||||
|
\ }
|
||||||
colorscheme nord
|
colorscheme nord
|
||||||
|
|||||||
Reference in New Issue
Block a user