Skip to content

Instantly share code, notes, and snippets.

@FrendaWinter
Last active September 16, 2024 04:40
Show Gist options
  • Save FrendaWinter/f3075ad923141b5fa702f321dd1a3236 to your computer and use it in GitHub Desktop.
Save FrendaWinter/f3075ad923141b5fa702f321dd1a3236 to your computer and use it in GitHub Desktop.
NeoVim setup and config
{
  "github/copilot.vim",
  -- Start copilot when Vim startup
  event = "VimEnter", 
},
  • Line number and tab indent
-- Enable relative line numbers
vim.opt.number = true
vim.opt.relativenumber = true
-- Tab
vim.o.tabstop = 4 -- A TAB character looks like 4 spaces
vim.o.expandtab = false -- Pressing the TAB key will insert spaces instead of a TAB character
vim.o.shiftwidth = 4 -- Number of spaces inserted when indenting
-- vim.o.softtabstop = 4 -- Number of spaces inserted instead of a TAB character
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment