diff --git a/init.lua b/init.lua index 0284025..df578c6 100644 --- a/init.lua +++ b/init.lua @@ -1,6 +1,8 @@ vim.g.mapleader = " " vim.g.maplocalleader = " " +vim.g.python3_host_prog = "python3.10" + -- If possible use 24 Bit Colors if vim.fn.has("termguicolors") == 1 then vim.o.termguicolors = true @@ -370,7 +372,8 @@ require("lazy").setup({ "MunifTanjim/nui.nvim", }, keys = { - { id = "Toggle neo tre[e]", "e", "Neotree toggle", desc = "NeoTree" }, + { "e", "Neotree toggle", desc = "Toggle file tre[e]" }, + { "f", "Neotree reveal toggle", desc = "Toggle file tre[e] (file)" }, }, config = function() require("neo-tree").setup({ @@ -379,6 +382,9 @@ require("lazy").setup({ [""] = "open_vsplit", [""] = "open_split" } + }, + filesystem = { + group_empty_dirs = false } }) end @@ -611,6 +617,12 @@ do vim.keymap.set("n", "", "j") vim.keymap.set("n", "", "k") vim.keymap.set("n", "", "l") + + -- Resize windows + vim.keymap.set('n', '', ':resize -2', { silent = true }) + vim.keymap.set('n', '', ':resize +2', { silent = true}) + vim.keymap.set('n', '', ':vertical resize -2', { silent = true }) + vim.keymap.set('n', '', ':vertical resize +2', { silent = true }) end -- Change c file comment string