-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinit.lua
More file actions
36 lines (32 loc) · 918 Bytes
/
Copy pathinit.lua
File metadata and controls
36 lines (32 loc) · 918 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
33
34
35
36
require('keymaps')
require('options')
require('plugins')
require('plugin_config')
require('lsp')
-- Open NvimTree on startup, but not when a file was passed as argument
vim.api.nvim_create_autocmd('VimEnter', {
callback = function()
if vim.fn.argc() == 0 then
require('nvim-tree.api').tree.open()
end
end,
})
-- Mark git commit limits: subject at 50, body at 72
vim.api.nvim_create_autocmd('FileType', {
pattern = 'gitcommit',
callback = function()
vim.wo.colorcolumn = '51,73'
end,
})
-- [[ Highlight on yank ]]
-- See `:help vim.highlight.on_yank()`
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
vim.api.nvim_create_autocmd('TextYankPost', {
callback = function()
vim.highlight.on_yank()
end,
group = highlight_group,
pattern = '*',
})
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et