Skip to content

Instantly share code, notes, and snippets.

@SEProblem
Created November 9, 2023 00:16
Show Gist options
  • Save SEProblem/03980935dbb8ad3fed2aa7d13d663b00 to your computer and use it in GitHub Desktop.
Save SEProblem/03980935dbb8ad3fed2aa7d13d663b00 to your computer and use it in GitHub Desktop.
A NeoVim init file for your NIM dev (if you want)
set number
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
filetype on
call plug#begin()
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
Plug 'alaviss/nim.nvim'
Plug 'ghifarit53/tokyonight-vim'
Plug 'prabirshrestha/asyncomplete.vim'
call plug#end()
set hidden
set termguicolors
let g:tokyonight_style = 'night' " available: night, storm
let g:tokyonight_enable_italic = 1
colorscheme tokyonight
let g:LanguageClient_serverCommands = {
\ 'nim': ['~/.nimble/bin/nimlsp'],
\ }
au User asyncomplete_setup call asyncomplete#register_source({
\ 'name': 'nim',
\ 'whitelist': ['nim'],
\ 'completor': {opt, ctx -> nim#suggest#sug#GetAllCandidates({start, candidates -> asyncomplete#complete(opt['name'], ctx, start, candidates)})}
\ })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment