blob: 733c589d2c5d84105b7b45c363824b1edbb77df5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
vim.api.nvim_create_autocmd("LspAttach", {
group = vim.api.nvim_create_augroup("tobyvin_lsp", { clear = true }),
desc = "lsp",
callback = function(args)
local client = vim.lsp.get_client_by_id(args.data.client_id)
vim.api.nvim_exec_autocmds("User", { pattern = "LspAttach", data = { client_id = client.id } })
end,
})
require("tobyvin.lsp.handlers")
require("tobyvin.lsp.highlighting")
require("tobyvin.lsp.formatting")
return {
default_config = {},
configs = require("tobyvin.lsp.configs"),
}
|