Updated 7. Contoh Custom Plugins (markdown)

Asep Komarudin 2023-03-03 22:56:06 +07:00
parent 635944a9cb
commit a772469c11

@ -1452,4 +1452,35 @@ return {
```
Sumber : <br>
https://github.com/folke/noice.nvim <br>
https://github.com/hrsh7th/cmp-cmdline
https://github.com/hrsh7th/cmp-cmdline
# nvim-treesitter-context
- but file lua/plugin/context.lua
```lua
return {
{
"romgrk/nvim-treesitter-context",
event = "BufRead",
config = function()
require("treesitter-context").setup({
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
throttle = true, -- Throttles plugin updates (may improve performance)
max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
patterns = { -- Match patterns for TS nodes. These get wrapped to match at word boundaries.
-- For all filetypes
-- Note that setting an entry here replaces all other patterns for this entry.
-- By setting the 'default' entry below, you can control which nodes you want to
-- appear in the context window.
default = {
"class",
"function",
"method",
},
},
})
end,
},
}
```
Sumber : <br>
https://github.com/nvim-treesitter/nvim-treesitter-context