-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
73 lines (65 loc) · 1.89 KB
/
Copy pathinit.lua
File metadata and controls
73 lines (65 loc) · 1.89 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
64
65
66
67
68
69
70
71
72
73
-- ~/.config/nvim/init.lua
-- Bootstrap lazy.nvim
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)
-- Setup lazy.nvim
require("lazy").setup({
-- List your plugins here
-- Example: A colorscheme
{ "folke/tokyonight.nvim", priority = 1000, config = function()
vim.cmd.colorscheme "tokyonight"
end,
},
-- Add more plugins below
-- { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
-- { "neovim/nvim-lspconfig" },
-- { "hrsh7th/nvim-cmp" }, -- Autocompletion
-- { "hrsh7th/cmp-nvim-lsp" },
-- { "L3MON4D3/LuaSnip" }, -- Snippets
}, {
-- Configure lazy.nvim options here if needed
-- ui = {
-- border = "rounded",
-- },
})
-- Basic Neovim settings (consider moving to a separate file like lua/core/options.lua)
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.mouse = 'a'
vim.opt.ignorecase = true
vim.opt.smartcase = true
vim.opt.hlsearch = true
vim.opt.incsearch = true
vim.opt.termguicolors = true
vim.opt.scrolloff = 8
vim.opt.sidescrolloff = 8
vim.opt.wrap = false
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.opt.autoindent = true
vim.opt.smartindent = true
vim.opt.backup = false
vim.opt.writebackup = false
vim.opt.swapfile = false
vim.opt.undofile = true
vim.opt.undodir = vim.fn.stdpath("data") .. "/undodir"
vim.fn.system("mkdir -p " .. vim.fn.stdpath("data") .. "/undodir")
-- Leader key
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- Basic keymaps (consider moving to a separate file like lua/core/keymaps.lua)
-- Example: Map <leader>pv to open file explorer
-- vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
print("Neovim config loaded!")