-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
32 lines (29 loc) · 904 Bytes
/
Copy pathinit.lua
File metadata and controls
32 lines (29 loc) · 904 Bytes
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
-- Set <space> as the leader key
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- Install package manager, lazy
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not vim.uv.fs_stat(lazypath) then
vim.fn.system {
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
'--branch=stable',
lazypath,
}
end
vim.opt.rtp:prepend(lazypath)
-- require these ones
require('plugins')
require('options')
require('keymaps')
require('treesitter')
require('scrollbar').setup()
require('last_edit').setup()
-- Copy :messages output to the system clipboard.
vim.api.nvim_create_user_command("CopyMessages", function()
vim.cmd("redir @+ | silent messages | redir END")
vim.notify("Messages copied to clipboard")
end, { desc = "Copy :messages output to system clipboard" })