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("plugin-config/nvim-tree")
|
||||
-- require("plugin-config/nvim-tree")
|
||||
require("plugin-config/buffer_line")
|
||||
require("plugin-config/treesitter")
|
||||
require("plugin-config/telescope")
|
||||
|
@ -93,8 +93,8 @@ wk.register({
|
||||
map("v", "<", "<gv", opt)
|
||||
map("v", ">", ">gv", opt)
|
||||
|
||||
-- nvimTree
|
||||
map("n", "T", ":NvimTreeToggle<CR>", opt)
|
||||
-- neoTree
|
||||
map("n", "T", ":NeoTreeFocusToggle<CR>", opt)
|
||||
|
||||
-- Packer
|
||||
wk.register({
|
||||
|
@ -5,7 +5,7 @@ local lspconfig = require("lspconfig")
|
||||
-- key 必须为下列网址列出的 server name,不可以随便写
|
||||
-- https://github.com/williamboman/nvim-lsp-installer#available-lsps
|
||||
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"),
|
||||
gopls = require("lsp.config.gopls"),
|
||||
eslint = require("lsp.config.eslint"),
|
||||
|
@ -12,8 +12,8 @@ require("jaq-nvim").setup({
|
||||
python = "python3 %",
|
||||
go = "go run %",
|
||||
sh = "sh %",
|
||||
c = "cd $dir && gcc $file -o $fileBase -g && $fileBase",
|
||||
cpp = "cd $dir && g++ $file -o $fileBase -g -w -std=c++11 && $fileBase",
|
||||
c = "cd $dir && gcc $file -o $fileBase -g && cd $dir && $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" })
|
||||
|
||||
-- nvim-tree for file manage
|
||||
-- use({
|
||||
-- "kyazdani42/nvim-tree.lua",
|
||||
-- requires = "kyazdani42/nvim-web-devicons",
|
||||
-- })
|
||||
|
||||
use({
|
||||
"kyazdani42/nvim-tree.lua",
|
||||
requires = "kyazdani42/nvim-web-devicons",
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
branch = "v2.x",
|
||||
requires = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
})
|
||||
|
||||
-- vim dashboard
|
||||
|
Loading…
Reference in New Issue
Block a user