change structure to use stow for simlink managing
This commit is contained in:
29
.config/nvim/init.lua
Normal file
29
.config/nvim/init.lua
Normal file
@@ -0,0 +1,29 @@
|
||||
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')
|
||||
|
||||
-- colorscheme
|
||||
vim.o.termguicolors = true
|
||||
vim.o.background = "dark" -- or "light" for light mode
|
||||
vim.cmd("colorscheme gruvbox ")
|
||||
|
||||
-- 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