add nvim-tree
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
require("config.lazy")
|
require("config.lazy")
|
||||||
require("config.lsp")
|
require("config.lsp")
|
||||||
require("config.theme")
|
require("config.theme")
|
||||||
|
require("config.nvim-tree")
|
||||||
|
|||||||
@@ -24,4 +24,7 @@ require("lazy").setup({
|
|||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"williamboman/mason-lspconfig.nvim",
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
|
|
||||||
|
-- file explorer on the side
|
||||||
|
"nvim-tree/nvim-tree.lua"
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ require('mason').setup({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
local servers = { 'pylsp', 'lua_ls', 'rust_analyzer' }
|
local servers = { 'pylsp', 'lua_ls', 'rust_analyzer', 'zls'}
|
||||||
|
|
||||||
require('mason-lspconfig').setup({
|
require('mason-lspconfig').setup({
|
||||||
-- A list of servers to automatically install if they're not already installed
|
-- A list of servers to automatically install if they're not already installed
|
||||||
|
|||||||
25
lua/config/nvim-tree.lua
Normal file
25
lua/config/nvim-tree.lua
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
require("nvim-tree").setup({
|
||||||
|
|
||||||
|
git = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
renderer = {
|
||||||
|
highlight_git = true,
|
||||||
|
icons = {
|
||||||
|
show = {
|
||||||
|
git = true,
|
||||||
|
},
|
||||||
|
glyphs = {
|
||||||
|
folder = {
|
||||||
|
default = "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
local opts = {
|
||||||
|
noremap = true, -- non-recursive
|
||||||
|
silent = true, -- do not show message
|
||||||
|
}
|
||||||
|
|
||||||
|
vim.keymap.set('n', "<leader>e", function () require("nvim-tree.api").tree.toggle() end, opts)
|
||||||
@@ -1 +1 @@
|
|||||||
require("lua.plugins.lazy")
|
require("plugins.lazy")
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ map('n', '<leader>x', ':tabclose<CR>', opts)
|
|||||||
map('n', '<leader>n', ':$tabnew<CR>', opts)
|
map('n', '<leader>n', ':$tabnew<CR>', opts)
|
||||||
map('n', '<leader>s', ':$tab split<CR>', opts)
|
map('n', '<leader>s', ':$tab split<CR>', opts)
|
||||||
|
|
||||||
|
|
||||||
-----------------
|
-----------------
|
||||||
-- Visual mode --
|
-- Visual mode --
|
||||||
-----------------
|
-----------------
|
||||||
|
|||||||
Reference in New Issue
Block a user