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