Skip to content

Instantly share code, notes, and snippets.

@FrendaWinter
Last active September 23, 2024 09:05
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
  • Disable LuaSnip and Snippet for NvChad
    • Edit ~/.config/nvim/lua/plugins/init.lua
return {
  {
    "L3MON4D3/LuaSnip",
    lazy = true,
    enabled = false, -- Disable LuaSnip
  },
  {
    "hrsh7th/nvim-cmp",
    lazy = true,
    enabled = false, -- Disable nvim-cmp
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment