mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
update nvim-tree config
This commit is contained in:
parent
5a53ad9060
commit
028e3d9895
9 changed files with 29 additions and 30 deletions
17
README.md
17
README.md
|
@ -1,8 +1,10 @@
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
# Nvim-Lazy
|
# Nvim-Lazy
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://github.com/pojokcodeid/nvim-lazy/pulse">
|
<a href="https://github.com/pojokcodeid/nvim-lazy/pulse">
|
||||||
<img src="https://img.shields.io/github/last-commit/pojokcodeid/nvim-lazy?style=for-the-badge&logo=github&color=7dc4e4&logoColor=D9E0EE&labelColor=302D41"/>
|
<img src="https://img.shields.io/github/last-commit/pojokcodeid/nvim-lazy?style=for-the-badge&logo=github&color=7dc4e4&logoColor=D9E0EE&labelColor=302D41"/>
|
||||||
|
@ -28,20 +30,27 @@
|
||||||
## HOME
|
## HOME
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Demo
|
## Demo
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
## Treesitter dan LSP
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Plugins Manager
|
## Plugins Manager
|
||||||
|
|
||||||

|

|
||||||
## Layout
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
|
<!-- ## Layout -->
|
||||||
|
|
||||||
|
<!--  -->
|
||||||
|
|
||||||
# Panduan Install Dan Konfigurasi NeoVim
|
# Panduan Install Dan Konfigurasi NeoVim
|
||||||
|
|
||||||
## Kunjungi <a href="https://github.com/pojokcodeid/nvim-lazy/wiki/">Wiki</a>
|
## Kunjungi <a href="https://github.com/pojokcodeid/nvim-lazy/wiki/">Wiki</a>
|
||||||
|
|
||||||
## Kebutuhan Dasar
|
## Kebutuhan Dasar
|
||||||
|
|
||||||
1. Install Neovim 8.0+ https://github.com/neovim/neovim/releases/tag/v0.8.2
|
1. Install Neovim 8.0+ https://github.com/neovim/neovim/releases/tag/v0.8.2
|
||||||
|
|
BIN
img/ts_lsp.gif
Normal file
BIN
img/ts_lsp.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.8 MiB |
|
@ -30,7 +30,7 @@
|
||||||
"neoscroll.nvim": { "branch": "master", "commit": "d7601c26c8a183fa8994ed339e70c2d841253e93" },
|
"neoscroll.nvim": { "branch": "master", "commit": "d7601c26c8a183fa8994ed339e70c2d841253e93" },
|
||||||
"null-ls.nvim": { "branch": "main", "commit": "689cdd78f70af20a37b5309ebc287ac645ae4f76" },
|
"null-ls.nvim": { "branch": "main", "commit": "689cdd78f70af20a37b5309ebc287ac645ae4f76" },
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "4fc96c8f3df89b6d23e5092d31c866c53a346347" },
|
"nvim-autopairs": { "branch": "master", "commit": "4fc96c8f3df89b6d23e5092d31c866c53a346347" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "7a3b1e76f74934b12fda82158237c6ad8bfd3d40" },
|
"nvim-cmp": { "branch": "main", "commit": "01f697a68905f9dcae70960a9eb013695a17f9a2" },
|
||||||
"nvim-colorizer.lua": { "branch": "master", "commit": "b0e08bea065b864d79392012635f8e2109df2d26" },
|
"nvim-colorizer.lua": { "branch": "master", "commit": "b0e08bea065b864d79392012635f8e2109df2d26" },
|
||||||
"nvim-lsp-installer": { "branch": "main", "commit": "17e0bfa5f2c8854d1636fcd036dc8284db136baa" },
|
"nvim-lsp-installer": { "branch": "main", "commit": "17e0bfa5f2c8854d1636fcd036dc8284db136baa" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "255e07ce2a05627d482d2de77308bba51b90470c" },
|
"nvim-lspconfig": { "branch": "master", "commit": "255e07ce2a05627d482d2de77308bba51b90470c" },
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
"nvim-navic": { "branch": "master", "commit": "7e9d2b2b601149fecdccd11b516acb721e571fe6" },
|
"nvim-navic": { "branch": "master", "commit": "7e9d2b2b601149fecdccd11b516acb721e571fe6" },
|
||||||
"nvim-notify": { "branch": "master", "commit": "bdd647f61a05c9b8a57c83b78341a0690e9c29d7" },
|
"nvim-notify": { "branch": "master", "commit": "bdd647f61a05c9b8a57c83b78341a0690e9c29d7" },
|
||||||
"nvim-scrollview": { "branch": "main", "commit": "ba6c48bf7919dd48a371e7b9c683b8858053e885" },
|
"nvim-scrollview": { "branch": "main", "commit": "ba6c48bf7919dd48a371e7b9c683b8858053e885" },
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "9c97e6449b0b0269bd44e1fd4857184dfa57bb4c" },
|
"nvim-tree.lua": { "branch": "master", "commit": "74959750f7823d6e069d3948a645f3c7a4c00638" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "c38646edf2bdfac157ca619697ecad9ea87fd469" },
|
"nvim-treesitter": { "branch": "master", "commit": "c38646edf2bdfac157ca619697ecad9ea87fd469" },
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "fdefe46c6807441460f11f11a167a2baf8e4534b" },
|
"nvim-ts-autotag": { "branch": "main", "commit": "fdefe46c6807441460f11f11a167a2baf8e4534b" },
|
||||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "a0f89563ba36b3bacd62cf967b46beb4c2c29e52" },
|
"nvim-ts-context-commentstring": { "branch": "main", "commit": "a0f89563ba36b3bacd62cf967b46beb4c2c29e52" },
|
||||||
|
|
|
@ -195,6 +195,7 @@ lualine.setup({
|
||||||
"toggleterm",
|
"toggleterm",
|
||||||
"lazy",
|
"lazy",
|
||||||
"mason",
|
"mason",
|
||||||
|
"neo-tree",
|
||||||
},
|
},
|
||||||
always_divide_middle = true,
|
always_divide_middle = true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -192,6 +192,7 @@ lualine.setup({
|
||||||
"toggleterm",
|
"toggleterm",
|
||||||
"lazy",
|
"lazy",
|
||||||
"mason",
|
"mason",
|
||||||
|
"neo-tree",
|
||||||
},
|
},
|
||||||
always_divide_middle = true,
|
always_divide_middle = true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -192,6 +192,7 @@ lualine.setup({
|
||||||
"toggleterm",
|
"toggleterm",
|
||||||
"lazy",
|
"lazy",
|
||||||
"mason",
|
"mason",
|
||||||
|
"neo-tree",
|
||||||
},
|
},
|
||||||
always_divide_middle = true,
|
always_divide_middle = true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -195,6 +195,7 @@ lualine.setup({
|
||||||
"toggleterm",
|
"toggleterm",
|
||||||
"lazy",
|
"lazy",
|
||||||
"mason",
|
"mason",
|
||||||
|
"neo-tree",
|
||||||
},
|
},
|
||||||
always_divide_middle = true,
|
always_divide_middle = true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,22 +1,15 @@
|
||||||
|
vim.g.loaded_netrw = 1
|
||||||
|
vim.g.loaded_netrwPlugin = 1
|
||||||
|
|
||||||
|
-- set termguicolors to enable highlight groups
|
||||||
|
vim.opt.termguicolors = true
|
||||||
local status_ok, nvim_tree = pcall(require, "nvim-tree")
|
local status_ok, nvim_tree = pcall(require, "nvim-tree")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local config_status_ok, nvim_tree_config = pcall(require, "nvim-tree.config")
|
|
||||||
if not config_status_ok then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local tree_cb = nvim_tree_config.nvim_tree_callback
|
|
||||||
local icons = require("user.icons")
|
local icons = require("user.icons")
|
||||||
|
|
||||||
nvim_tree.setup({
|
nvim_tree.setup({
|
||||||
update_focused_file = {
|
|
||||||
enable = true,
|
|
||||||
update_cwd = true,
|
|
||||||
},
|
|
||||||
select_prompts = true,
|
|
||||||
renderer = {
|
renderer = {
|
||||||
root_folder_modifier = ":t",
|
root_folder_modifier = ":t",
|
||||||
indent_markers = {
|
indent_markers = {
|
||||||
|
@ -77,12 +70,5 @@ nvim_tree.setup({
|
||||||
width = 30,
|
width = 30,
|
||||||
hide_root_folder = false,
|
hide_root_folder = false,
|
||||||
side = "left",
|
side = "left",
|
||||||
mappings = {
|
|
||||||
list = {
|
|
||||||
{ key = { "l", "<CR>", "o" }, cb = tree_cb("edit") },
|
|
||||||
{ key = "h", cb = tree_cb("close_node") },
|
|
||||||
{ key = "v", cb = tree_cb("vsplit") },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
})
|
})
|
|
@ -6,4 +6,4 @@ scrollview.setup({
|
||||||
bg = "LightCyan",
|
bg = "LightCyan",
|
||||||
ctermbg = 160,
|
ctermbg = 160,
|
||||||
})
|
})
|
||||||
vim.g.scrollview_excluded_filetypes = { "NvimTree", "vista_kind", "Outline" }
|
vim.g.scrollview_excluded_filetypes = { "NvimTree", "vista_kind", "Outline", "neo-tree" }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue