idr
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
@@ -15,21 +14,20 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Make sure to setup `mapleader` and `maplocalleader` before
|
||||
-- loading lazy.nvim so that mappings are correct.
|
||||
-- This is also a good place to setup other settings (vim.opt)
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = "\\"
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
require("config.maps")
|
||||
require("config.opts")
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- import your plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
-- Configure any other settings here. See the documentation for more details.
|
||||
-- colorscheme that will be used when installing plugins.
|
||||
install = { colorscheme = { "habamax" } },
|
||||
-- automatically check for plugin updates
|
||||
install = { colorscheme = { "tokyonight" } },
|
||||
checker = { enabled = true },
|
||||
})
|
||||
|
||||
vim.cmd[[colorscheme tokyonight]]
|
||||
|
||||
require("bufferline").setup{}
|
||||
|
||||
3
lua/config/maps.lua
Normal file
3
lua/config/maps.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
local map = vim.keymap.set
|
||||
|
||||
map("n", "<leader>e", "<cmd>NvimTreeToggle<CR>", { desc = "NvimTree" })
|
||||
7
lua/config/opts.lua
Normal file
7
lua/config/opts.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.tabstop = 2
|
||||
vim.opt.smartindent = true
|
||||
vim.opt.autoindent = true
|
||||
Reference in New Issue
Block a user