adding tab support
This commit is contained in:
parent
f46d93c137
commit
0df83afbb2
22
init.lua
22
init.lua
@ -207,9 +207,14 @@ vim.keymap.set("v", "<A-j>", ":m '>+1<CR>gv=gv") -- move line up(v)
|
|||||||
vim.keymap.set("v", "<A-k>", ":m '<-2<CR>gv=gv") -- move line down(v)
|
vim.keymap.set("v", "<A-k>", ":m '<-2<CR>gv=gv") -- move line down(v)
|
||||||
vim.keymap.set("n", "<A-d>", "yyp") -- copy line below
|
vim.keymap.set("n", "<A-d>", "yyp") -- copy line below
|
||||||
|
|
||||||
|
-- nvim tree
|
||||||
vim.keymap.set("n", "<leader>e", ":NvimTreeToggle<CR>")
|
vim.keymap.set("n", "<leader>e", ":NvimTreeToggle<CR>")
|
||||||
vim.keymap.set("n", "<leader>z", ":NvimTreeCollapse<CR>")
|
vim.keymap.set("n", "<leader>z", ":NvimTreeCollapse<CR>")
|
||||||
|
|
||||||
|
-- tabs at top of screen
|
||||||
|
vim.keymap.set("n", "<A-,>", "<Cmd>BufferPrevious<CR>")
|
||||||
|
vim.keymap.set("n", "<A-.>", "<Cmd>BufferNext<CR>")
|
||||||
|
|
||||||
-- [[ Basic Autocommands ]]
|
-- [[ Basic Autocommands ]]
|
||||||
-- See `:help lua-guide-autocommands`
|
-- See `:help lua-guide-autocommands`
|
||||||
|
|
||||||
@ -297,6 +302,23 @@ require("lazy").setup({
|
|||||||
require("nvim-tree").setup({})
|
require("nvim-tree").setup({})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"romgrk/barbar.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"lewis6991/gitsigns.nvim", -- OPTIONAL: for git status
|
||||||
|
"nvim-tree/nvim-web-devicons", -- OPTIONAL: for file icons
|
||||||
|
},
|
||||||
|
init = function()
|
||||||
|
vim.g.barbar_auto_setup = false
|
||||||
|
end,
|
||||||
|
opts = {
|
||||||
|
-- lazy.nvim will automatically call setup for you. put your options here, anything missing will use the default:
|
||||||
|
-- animation = true,
|
||||||
|
-- insert_at_start = true,
|
||||||
|
-- …etc.
|
||||||
|
},
|
||||||
|
version = "^1.0.0", -- optional: only update when a new 1.x version is released
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
-- NOTE: Plugins can also be configured to run Lua code when they are loaded.
|
-- NOTE: Plugins can also be configured to run Lua code when they are loaded.
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" },
|
"LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" },
|
||||||
"auto-save.nvim": { "branch": "main", "commit": "29f793a3a7f98129387590269ffe3ad61ab5e509" },
|
"auto-save.nvim": { "branch": "main", "commit": "29f793a3a7f98129387590269ffe3ad61ab5e509" },
|
||||||
|
"barbar.nvim": { "branch": "master", "commit": "53b5a2f34b68875898f0531032fbf090e3952ad7" },
|
||||||
"cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" },
|
"cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" },
|
||||||
"cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "031e6ba70b0ad5eee49fd2120ff7a2e325b17fa7" },
|
"cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "031e6ba70b0ad5eee49fd2120ff7a2e325b17fa7" },
|
||||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user