better scope highlighting

This commit is contained in:
ChrisHilborne 2023-12-20 18:04:16 +01:00
parent 2e48e23a72
commit 13c4121987
3 changed files with 67 additions and 8 deletions

View File

@ -438,7 +438,7 @@ end
-- define the property 'filetypes' to the map in question. -- define the property 'filetypes' to the map in question.
local servers = { local servers = {
clangd = {}, clangd = {},
gopls = {}, gopls = { filetypes = { 'go' } },
pyright = {}, pyright = {},
rust_analyzer = {}, rust_analyzer = {},
tsserver = {}, tsserver = {},

View File

@ -0,0 +1,11 @@
return {
{
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
build = "cd app && yarn install",
init = function()
vim.g.mkdp_filetypes = { "markdown" }
end,
ft = { "markdown" },
},
}

View File

@ -27,14 +27,62 @@ return {
-- }, -- },
-- }, -- },
{ {
-- Add indentation guides even on blank lines "lukas-reineke/indent-blankline.nvim",
'lukas-reineke/indent-blankline.nvim',
-- Enable `lukas-reineke/indent-blankline.nvim`
-- See `:help indent_blankline.txt`
tag = 'v2.20.8',
opts = { opts = {
char = '', indent = {
show_trailing_blankline_indent = false, char = "",
tab_char = "",
},
scope = { enabled = false },
exclude = {
filetypes = {
"help",
"alpha",
"dashboard",
"neo-tree",
"Trouble",
"trouble",
"lazy",
"mason",
"notify",
"toggleterm",
"lazyterm",
},
},
}, },
main = "ibl",
},
-- Active indent guide and indent text objects. When you're browsing
-- code, this highlights the current level of indentation, and animates
-- the highlighting.
{
"echasnovski/mini.indentscope",
version = false, -- wait till new 0.7.0 release to put it back on semver
opts = {
-- symbol = "▏",
symbol = "",
options = { try_as_border = true },
},
init = function()
vim.api.nvim_create_autocmd("FileType", {
pattern = {
"help",
"alpha",
"dashboard",
"neo-tree",
"Trouble",
"trouble",
"lazy",
"mason",
"notify",
"toggleterm",
"lazyterm",
},
callback = function()
vim.b.miniindentscope_disable = true
end,
})
end,
}, },
} }