Skip to content

Instantly share code, notes, and snippets.

@shoaib281
Created January 19, 2023 22:33
Show Gist options
  • Save shoaib281/4c999fbe8416e711c37f81dc765ea90e to your computer and use it in GitHub Desktop.
Save shoaib281/4c999fbe8416e711c37f81dc765ea90e to your computer and use it in GitHub Desktop.
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.ignorecase = true
vim.opt.tabstop = 4
vim.opt.shiftwidth = 4
vim.opt.showmode = false -- airline is used instead
vim.api.nvim_set_keymap("i", "{", "{}<esc>ha", {noremap = true})
vim.api.nvim_set_keymap("i", "[", "[]<esc>ha", {noremap = true})
vim.api.nvim_set_keymap("i", "(", "()<esc>ha", {noremap = true})
vim.api.nvim_set_keymap("i", '"', '""<esc>ha', {noremap = true})
vim.api.nvim_set_keymap("i", "<", "<><esc>ha", {noremap = true})
-- plugins
local plug = vim.fn["plug#"]
vim.call("plug#begin", "~/.config/nvim/plugged")
plug("EdenEast/nightfox.nvim", {["as"] = "nightfox"}) -- colorscheme
plug("catppuccin/nvim", {["as"] = "catppuccin"}) -- colorscheme
plug("nvim-tree/nvim-tree.lua", {["as"] = "nvim-tree"}) -- tree
plug("nvim-tree/nvim-web-devicons") -- tree
plug("vim-airline/vim-airline") --pooewrline/airline
plug("vim-airline/vim-airline-themes") -- themes
vim.call("plug#end")
require("nvim-tree").setup()
require("catppuccin").setup({
flavour = "mocha", -- mocha, macchiato, frappe, latte
integrations = {
nvimtree = true,
},
})
vim.g.airline_theme = "catppuccin"
vim.cmd("colorscheme catppuccin")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment