change file browser to neotree
This commit is contained in:
parent
cfcf4c2ff0
commit
6aee450ef6
2
init.lua
2
init.lua
@ -4,7 +4,7 @@ require("plugins")
|
|||||||
|
|
||||||
require("keybindings")
|
require("keybindings")
|
||||||
|
|
||||||
require("plugin-config/nvim-tree")
|
-- require("plugin-config/nvim-tree")
|
||||||
require("plugin-config/buffer_line")
|
require("plugin-config/buffer_line")
|
||||||
require("plugin-config/treesitter")
|
require("plugin-config/treesitter")
|
||||||
require("plugin-config/telescope")
|
require("plugin-config/telescope")
|
||||||
|
@ -93,8 +93,8 @@ wk.register({
|
|||||||
map("v", "<", "<gv", opt)
|
map("v", "<", "<gv", opt)
|
||||||
map("v", ">", ">gv", opt)
|
map("v", ">", ">gv", opt)
|
||||||
|
|
||||||
-- nvimTree
|
-- neoTree
|
||||||
map("n", "T", ":NvimTreeToggle<CR>", opt)
|
map("n", "T", ":NeoTreeFocusToggle<CR>", opt)
|
||||||
|
|
||||||
-- Packer
|
-- Packer
|
||||||
wk.register({
|
wk.register({
|
||||||
|
@ -5,7 +5,7 @@ local lspconfig = require("lspconfig")
|
|||||||
-- key 必须为下列网址列出的 server name,不可以随便写
|
-- key 必须为下列网址列出的 server name,不可以随便写
|
||||||
-- https://github.com/williamboman/nvim-lsp-installer#available-lsps
|
-- https://github.com/williamboman/nvim-lsp-installer#available-lsps
|
||||||
local servers = {
|
local servers = {
|
||||||
sumneko_lua = require("lsp.config.lua"), -- lua/lsp/config/lua.lua
|
lua_ls = require("lsp.config.lua"), -- lua/lsp/config/lua.lua
|
||||||
clangd = require("lsp.config.clangd"),
|
clangd = require("lsp.config.clangd"),
|
||||||
gopls = require("lsp.config.gopls"),
|
gopls = require("lsp.config.gopls"),
|
||||||
eslint = require("lsp.config.eslint"),
|
eslint = require("lsp.config.eslint"),
|
||||||
|
@ -12,8 +12,8 @@ require("jaq-nvim").setup({
|
|||||||
python = "python3 %",
|
python = "python3 %",
|
||||||
go = "go run %",
|
go = "go run %",
|
||||||
sh = "sh %",
|
sh = "sh %",
|
||||||
c = "cd $dir && gcc $file -o $fileBase -g && $fileBase",
|
c = "cd $dir && gcc $file -o $fileBase -g && cd $dir && $fileBase",
|
||||||
cpp = "cd $dir && g++ $file -o $fileBase -g -w -std=c++11 && $fileBase",
|
cpp = "cd $dir && g++ $file -o $fileBase -g -w -std=c++11 && cd $dir && $fileBase",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -62,9 +62,19 @@ return require("packer").startup(function()
|
|||||||
use({ "nvim-orgmode/orgmode" })
|
use({ "nvim-orgmode/orgmode" })
|
||||||
|
|
||||||
-- nvim-tree for file manage
|
-- nvim-tree for file manage
|
||||||
|
-- use({
|
||||||
|
-- "kyazdani42/nvim-tree.lua",
|
||||||
|
-- requires = "kyazdani42/nvim-web-devicons",
|
||||||
|
-- })
|
||||||
|
|
||||||
use({
|
use({
|
||||||
"kyazdani42/nvim-tree.lua",
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
requires = "kyazdani42/nvim-web-devicons",
|
branch = "v2.x",
|
||||||
|
requires = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- vim dashboard
|
-- vim dashboard
|
||||||
|
Loading…
Reference in New Issue
Block a user