Skip to content

Instantly share code, notes, and snippets.

@NoaHimesaka1873
Last active March 4, 2023 07:31
Show Gist options
  • Save NoaHimesaka1873/52f16c92ec54e4ff16b4460be5447567 to your computer and use it in GitHub Desktop.
Save NoaHimesaka1873/52f16c92ec54e4ff16b4460be5447567 to your computer and use it in GitHub Desktop.
dotfiles
local Plug = vim.fn['plug#']
vim.call('plug#begin')
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'github/copilot.vim'
Plug 'neovim/nvim-lspconfig'
Plug 'justinmk/vim-sneak'
Plug 'easymotion/vim-easymotion'
Plug 'kyazdani42/nvim-web-devicons'
Plug 'kyazdani42/nvim-tree.lua'
Plug 'nvim-lua/plenary.nvim'
Plug 'TimUntersberger/neogit'
Plug 'romgrk/barbar.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'andweeb/presence.nvim'
Plug 'ellisonleao/glow.nvim'
vim.call('plug#end')
local opt = vim.opt
local neogit = require('neogit')
vim.cmd[[set mouse=a]]
vim.cmd[[set number]]
vim.cmd[[set background=dark]]
vim.api.nvim_set_keymap('n', 'm', '<Plug>(easymotion-overwin-f2)', {noremap = true, silent = true})
vim.api.nvim_set_keymap('n', '<C-j>', '<Plug>(easymotion-j)', {noremap = true, silent = true})
vim.api.nvim_set_keymap('n', '<C-k>', '<Plug>(easymotion-k)', {noremap = true, silent = true})
vim.g['EasyMotion_smartcase'] = 1
vim.api.nvim_set_keymap('n', '<Leader>f', [[<Cmd>NvimTreeFocus<CR>]], {noremap = true, silent = true})
vim.api.nvim_set_keymap('n', '<Leader>t', [[<Cmd>NvimTreeToggle<CR>]], {noremap = true, silent = true})
require("nvim-tree").setup()
vim.api.nvim_set_keymap('n', '<A-,>', '<Cmd>BufferPrevious<CR>', {noremap = true, silent = true})
vim.api.nvim_set_keymap('n', '<A-.>', '<Cmd>BufferNext<CR>', {noremap = true, silent = true})
vim.api.nvim_set_keymap('n', '<A-q>', '<Cmd>BufferClose<CR>', {noremap = true, silent = true})
neogit.setup {}
vim.g['airline_powerline_fonts'] = 1
opt.guifont = "NeoDunggeunmo Code"
require'lspconfig'.pyright.setup{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment