Skip to content

Instantly share code, notes, and snippets.

@imroca
Created January 18, 2025 19:39
Show Gist options
  • Save imroca/e79105a881ae12e2c0585e06d1f15086 to your computer and use it in GitHub Desktop.
Save imroca/e79105a881ae12e2c0585e06d1f15086 to your computer and use it in GitHub Desktop.
ChatGPT Minimal nvim config
-- Basic settings
vim.opt.number = true -- Show line numbers
vim.opt.relativenumber = true -- Show relative line numbers
vim.opt.clipboard = "unnamedplus" -- Enable system clipboard integration
vim.opt.expandtab = true -- Use spaces instead of tabs
vim.opt.shiftwidth = 4 -- Number of spaces per indentation
vim.opt.tabstop = 4 -- Number of spaces for a tab
vim.opt.termguicolors = true -- Enable true color support
vim.opt.wrap = false -- Disable line wrapping
vim.opt.swapfile = false -- Disable swap file creation
vim.opt.backup = false -- Disable backup files
vim.opt.undofile = true -- Enable persistent undo
vim.opt.ignorecase = true -- Case-insensitive search
vim.opt.smartcase = true -- Case-sensitive if uppercase is used in search
vim.opt.cursorline = true -- Highlight the current line
-- Keybindings
vim.keymap.set("n", "<Leader>w", ":w<CR>") -- Save file
vim.keymap.set("n", "<Leader>q", ":q<CR>") -- Quit Neovim
vim.keymap.set("n", "<Leader>a", "ggVG") -- Select all
-- Minimal command interface
vim.opt.cmdheight = 1 -- Set minimal height for the command line
vim.opt.showmode = false -- Disable showing modes (e.g., -- INSERT --)
-- Enable mouse support
vim.opt.mouse = "a"
-- Basic colorscheme
vim.cmd("colorscheme desert")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment