Compare commits
No commits in common. "094f7f2e730971b6f72feda0ee55c26760ad0ba1" and "a4b0ab3c8408c1f3050b4758ff3bb34f6cbb1bad" have entirely different histories.
094f7f2e73
...
a4b0ab3c84
@ -19,6 +19,23 @@ local function on_attach(client, bufnr)
|
|||||||
disable_format_capability(capabilities)
|
disable_format_capability(capabilities)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
-- Enable inlay hints if the language server provides them
|
||||||
|
if capabilities.inlayHintProvider then
|
||||||
|
vim.api.nvim_create_autocmd("InsertEnter", {
|
||||||
|
buffer = bufnr,
|
||||||
|
callback = function()
|
||||||
|
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
|
||||||
|
end,
|
||||||
|
group = lsp_augroup,
|
||||||
|
})
|
||||||
|
vim.api.nvim_create_autocmd("InsertLeave", {
|
||||||
|
buffer = bufnr,
|
||||||
|
callback = function()
|
||||||
|
vim.lsp.inlay_hint.enable(false, { bufnr = bufnr })
|
||||||
|
end,
|
||||||
|
group = lsp_augroup,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
if capabilities.semanticTokensProvider and capabilities.semanticTokensProvider.full then
|
if capabilities.semanticTokensProvider and capabilities.semanticTokensProvider.full then
|
||||||
require("hlargs").disable_buf(bufnr)
|
require("hlargs").disable_buf(bufnr)
|
||||||
|
@ -25,20 +25,8 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter-context",
|
"PriceHiller/nvim-ts-autotag",
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
branch = "fix/close-xml-tags",
|
||||||
dependencies = {
|
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
require("treesitter-context").setup({
|
|
||||||
max_lines = 3,
|
|
||||||
})
|
|
||||||
vim.cmd.TSContextEnable()
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"windwp/nvim-ts-autotag",
|
|
||||||
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
opts = {
|
opts = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user