[neovim] add some neotree config
This commit is contained in:
parent
b0b8f778f2
commit
dc12689a0e
@ -63,6 +63,7 @@
|
|||||||
vim.opt.expandtab = true
|
vim.opt.expandtab = true
|
||||||
vim.opt.smartindent = true
|
vim.opt.smartindent = true
|
||||||
|
|
||||||
|
|
||||||
-- load plugins
|
-- load plugins
|
||||||
-- neo-tree
|
-- neo-tree
|
||||||
require("neo-tree").setup({
|
require("neo-tree").setup({
|
||||||
@ -76,10 +77,21 @@
|
|||||||
window = {
|
window = {
|
||||||
position = "left",
|
position = "left",
|
||||||
width = 45,
|
width = 45,
|
||||||
|
mapping_options = {
|
||||||
|
noremap = true,
|
||||||
|
nowait = true,
|
||||||
|
},
|
||||||
|
mappings = {
|
||||||
|
["<space>"] = {
|
||||||
|
"toggle_node",
|
||||||
|
nowait = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
require("neo-tree.sources.manager").show("filesystem")
|
require("neo-tree.sources.manager").show("filesystem")
|
||||||
|
|
||||||
|
|
||||||
-- nvim-treesitter
|
-- nvim-treesitter
|
||||||
require("nvim-treesitter").setup({
|
require("nvim-treesitter").setup({
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
@ -94,10 +106,12 @@
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
-- telescope-nvim
|
-- telescope-nvim
|
||||||
local builtin = require("telescope.builtin")
|
local builtin = require("telescope.builtin")
|
||||||
vim.keymap.set('n', '<C-p>', builtin.find_files, {})
|
vim.keymap.set('n', '<C-p>', builtin.find_files, {})
|
||||||
|
|
||||||
|
|
||||||
-- vimplugin-catppuccin-nvim
|
-- vimplugin-catppuccin-nvim
|
||||||
require("catppuccin").setup({ flavour = "mocha" })
|
require("catppuccin").setup({ flavour = "mocha" })
|
||||||
vim.cmd.colorscheme "catppuccin"
|
vim.cmd.colorscheme "catppuccin"
|
||||||
|
Reference in New Issue
Block a user