mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-21 03:04:36 +02:00
Updated 7. Contoh Custom Plugins (markdown)
parent
635944a9cb
commit
a772469c11
1 changed files with 32 additions and 1 deletions
|
@ -1453,3 +1453,34 @@ return {
|
||||||
Sumber : <br>
|
Sumber : <br>
|
||||||
https://github.com/folke/noice.nvim <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
|
Loading…
Add table
Add a link
Reference in a new issue