-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
63 lines (58 loc) · 1.73 KB
/
init.lua
File metadata and controls
63 lines (58 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
if vim.g.neovide then
-- Put anything you want to happen only in Neovide here
-- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy")
else
vim.cmd("set expandtab")
vim.cmd("set tabstop=4")
vim.cmd("set softtabstop=4")
vim.cmd("set shiftwidth=4")
vim.g.mapleader= " "
-- Lazy package manager
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or 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)
local opts = {}
local plugins = {
{
--"catppuccin/nvim", name = "catppuccin", priority = 1000
"dgox16/oldworld.nvim",
name = "oldworld",
lazy = false,
priority = 1000,
},
{
"nvim-telescope/telescope.nvim",
tag = "0.1.6",
dependencies = { "nvim-lua/plenary.nvim" }
},
{
"nvim-treesitter/nvim-treesitter",
build= ":TSUpdate"
}
}
require("lazy").setup(plugins, opts)
-- theme
require("oldworld").setup()
vim.cmd.colorscheme("oldworld")
--telescope
local builtin = require("telescope.builtin")
vim.keymap.set("n", "<C-p>", builtin.find_files, {})
vim.keymap.set("n", "<leader>fg", builtin.live_grep, {})
--treesitter
local config = require("nvim-treesitter.configs")
config.setup({
ensure_installed = { "lua", "javascript" },
highlight = { enable = true },
indent = { enable = true }
})
end