Skip to content

A modern Neovim configuration focused on Clojure, TypeScript (Deno), and Python development with LSP support.

License

Notifications You must be signed in to change notification settings

ai-mindset/init.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

init.vim

A comprehensive Neovim configuration that turns Neovim into a full-featured IDE for Data Science, AI Engineering, and Backend development. Supports Python, Clojure, JavaScript/TypeScript (via Deno), shell scripting, containerisation, and technical documentation.

Development Environments

  • GitHub Copilot AI assistance
  • Ollama local AI assistance

Python (Data Science/AI)

  • Full LSP support via Pyright
  • Automatic linting and formatting with Ruff
  • REPL integration through Conjure

Clojure (Backend/Data Processing)

  • Complete Clojure LSP integration
  • REPL-driven development with Conjure
  • Structural editing via vim-sexp
  • Automatic formatting with cljfmt
  • Linting with clj-kondo

Deno (TypeScript/JavaScript)

  • Advanced LSP features for modern JavaScript/TypeScript
  • Built-in linting and formatting

Container & Infrastructure

  • Containerfile/Dockerfile LSP support
  • Shell script (Bash/Zsh) language server

Documentation

  • Markdown LSP with preview via glow
  • Spell checking
  • Text-to-speech support via Piper

Key Bindings

  • <leader> = <space>
  • <localleader> = ,

Development

  • LSP hover: K
  • Definition: gd
  • References: gr
  • Code actions: <leader>ca

Navigation

  • Find keymappings: <leader>k

REPL

  • Connect: <localleader>cc
  • Evaluate: <localleader>ee
  • Documentation: <localleader>hd

Requirements

Installation

  1. Backup your existing config:
mv ~/.config/nvim ~/.config/nvim.backup # Backup your current setup (if you have one)
# Cleanup old configuration artefacts
rm -r ~/.local/share/nvim 
rm -r ~/.local/state/nvim
rm -r ~/.cache/nvim 
  1. Install Vim-plug
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  1. Clone this config:
git clone https://github.com/ai-mindset/init.vim ~/.config/nvim
  1. Start Neovim:
nvim --headless +PlugInstall +qall # Only required on first start, to install plugins

Customization

  • LSP servers: Modify ensure_installed in the Mason setup
  • Copilot: Edit g:copilot_filetypes to enable/disable for specific languages
  • Colour scheme: Change colorscheme vscode to your preferred theme