formatting fix
This commit is contained in:
6
init.lua
6
init.lua
@@ -7,7 +7,7 @@ vim.opt.shiftwidth = 2 -- Indent width
|
||||
vim.opt.expandtab = true -- Use spaces instead of tabs
|
||||
vim.opt.wrap = true
|
||||
|
||||
vim.cmd.colorscheme("retrobox")
|
||||
-- vim.cmd.colorscheme("retrobox")
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
vim.opt.clipboard = 'unnamedplus' -- System clipboard
|
||||
@@ -61,3 +61,7 @@ require("rakshit")
|
||||
|
||||
vim.cmd("packadd nvim.undotree")
|
||||
vim.keymap.set("n", "<leader>u", require("undotree").open)
|
||||
|
||||
vim.keymap.set("n", "<leader>ee", function ()
|
||||
vim.cmd("NvimTreeFocus")
|
||||
end)
|
||||
|
||||
@@ -25,9 +25,15 @@ require("nvim-tree").setup({
|
||||
width = 30,
|
||||
},
|
||||
|
||||
on_attach = function(bufnr)
|
||||
local api = require("nvim-tree.api")
|
||||
api.config.mappings.default_on_attach(bufnr)
|
||||
vim.keymap.set("n", "<Esc>", api.tree.close, { buffer = bufnr, nowait = true })
|
||||
end,
|
||||
|
||||
actions = {
|
||||
open_file = {
|
||||
quit_on_open = true, -- closes tree when opening a file
|
||||
quit_on_open = true,
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user