latest
This commit is contained in:
@@ -1,29 +1,37 @@
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
require('lazy').setup('plugins')
|
||||
|
||||
-- Settings
|
||||
vim.cmd('source ~/.config/nvim/settings.vim')
|
||||
require("config.lazy")
|
||||
|
||||
-- colorscheme
|
||||
vim.o.termguicolors = true
|
||||
vim.o.background = "dark" -- or "light" for light mode
|
||||
vim.cmd("colorscheme gruvbox ")
|
||||
--vim.opt.winborder = 'rounded'
|
||||
--vim.o.background = "dark" -- or "light" for light mode
|
||||
--vim.cmd("colorscheme gruvbox ")
|
||||
--vim.cmd("colorscheme retrobox")
|
||||
|
||||
vim.opt.clipboard = "unnamedplus" -- uses the clipboard register for all operations except yank.
|
||||
|
||||
vim.cmd("set nocompatible")
|
||||
vim.cmd("syntax on")
|
||||
vim.cmd("filetype plugin indent on")
|
||||
vim.cmd("set number")
|
||||
|
||||
vim.cmd("set relativenumber")
|
||||
vim.cmd("set expandtab")
|
||||
vim.cmd("set shiftwidth=4")
|
||||
vim.cmd("set softtabstop=4")
|
||||
vim.cmd("set tabstop=4")
|
||||
vim.cmd("set smartindent")
|
||||
|
||||
vim.cmd("set backspace=indent,eol,start")
|
||||
vim.cmd("set colorcolumn=81")
|
||||
vim.cmd("set textwidth=80")
|
||||
vim.cmd("set wrap")
|
||||
vim.cmd("set linebreak")
|
||||
vim.cmd("noswapfile")
|
||||
|
||||
vim.cmd("set autoread")
|
||||
vim.cmd("set complete-=i")
|
||||
|
||||
vim.cmd("au FileType python set fileformat=unix encoding=utf-8")
|
||||
vim.cmd("au FileType markdown,tex set spell spelllang=en_us")
|
||||
|
||||
-- keymaps
|
||||
vim.keymap.set('n', '<leader>/', ':nohlsearch<CR>')
|
||||
vim.keymap.set('n', '<leader>b', ':buffers<CR>')
|
||||
vim.keymap.set('n', 'bp', ':bp<CR>')
|
||||
vim.keymap.set('n', 'bn', ':bn<CR>')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user