-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
40 lines (35 loc) · 1.05 KB
/
Copy pathinit.lua
File metadata and controls
40 lines (35 loc) · 1.05 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
vim.loader.enable()
require('spxctre.remap')
require('spxctre.opts')
require('spxctre.lazy')
require('spxctre.neovide')
vim.api.nvim_create_autocmd('FileType', {
pattern = require('spxctre.treesitter').parsers,
callback = function()
vim.defer_fn(function() pcall(vim.treesitter.start) end, 15)
end,
})
vim.api.nvim_create_autocmd('FileType', {
pattern = { 'qf' },
callback = function(ev)
vim.defer_fn(function()
vim.api.nvim_set_current_win(vim.fn.win_findbuf(ev.buf)[1])
end, 5) -- deferred to make sure autocmd catches the window init after init has finished
end
})
vim.api.nvim_create_autocmd({ 'ColorScheme', 'UIEnter' }, {
callback = function()
vim.api.nvim_set_hl(0, 'Pmenu', {
link = 'Normal'
})
vim.api.nvim_set_hl(0, 'NormalFloat', {
link = 'Normal'
})
vim.api.nvim_set_hl(0, 'FloatBorder', {
link = 'Normal'
})
vim.api.nvim_set_hl(0, 'TelescopeBorder', {
link = 'Normal'
})
end
})