Compare commits
2 Commits
a4b0ab3c84
...
094f7f2e73
Author | SHA1 | Date | |
---|---|---|---|
094f7f2e73 | |||
1579c71beb |
@ -19,23 +19,6 @@ local function on_attach(client, bufnr)
|
||||
disable_format_capability(capabilities)
|
||||
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
|
||||
require("hlargs").disable_buf(bufnr)
|
||||
|
@ -25,8 +25,20 @@ return {
|
||||
},
|
||||
},
|
||||
{
|
||||
"PriceHiller/nvim-ts-autotag",
|
||||
branch = "fix/close-xml-tags",
|
||||
"nvim-treesitter/nvim-treesitter-context",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
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" },
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
opts = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user