From dc12689a0e96d01a0a6e63ed1fb56dab6f56438c Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Wed, 3 Apr 2024 17:09:37 +0200 Subject: [PATCH] [neovim] add some neotree config --- nix/home/neovim/neovim.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/nix/home/neovim/neovim.nix b/nix/home/neovim/neovim.nix index 30319ea..d99f8ce 100644 --- a/nix/home/neovim/neovim.nix +++ b/nix/home/neovim/neovim.nix @@ -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 = { + [""] = { + "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', '', builtin.find_files, {}) + -- vimplugin-catppuccin-nvim require("catppuccin").setup({ flavour = "mocha" }) vim.cmd.colorscheme "catppuccin"