Compare commits

..

3 Commits

Author SHA1 Message Date
bb5185eac4 buffer mappings 2026-02-06 16:16:56 -06:00
2a63e1d8ef terminal 2026-02-06 15:45:54 -06:00
9499cc8072 luaformat 2026-02-06 14:29:42 -06:00
6 changed files with 87 additions and 29 deletions

View File

@@ -1,3 +1,29 @@
local map = vim.keymap.set local map = vim.keymap.set
map("n", "<leader>e", "<cmd>NvimTreeToggle<CR>", { desc = "NvimTree" }) map("n", "<leader>e", "<cmd>NvimTreeToggle<CR>", { desc = "NvimTree" })
map("n", "<leader>f", function()
require("conform").format { async = true }
end, { desc = "Format buffer" })
map("n", "<C-h>", "<C-w>h", { desc = "switch window left" })
map("n", "<C-l>", "<C-w>l", { desc = "switch window right" })
map("n", "<C-j>", "<C-w>j", { desc = "switch window down" })
map("n", "<C-k>", "<C-w>k", { desc = "switch window up" })
map("n", "<Esc>", "<cmd>noh<CR>", { desc = "general clear highlights" })
map("n", "<leader>n", "<cmd>set nu!<CR>", { desc = "toggle line number" })
map("n", "<leader>/", "gcc", { desc = "toggle comment", remap = true })
map("v", "<leader>/", "gc", { desc = "toggle comment", remap = true })
map("t", "<C-x>", "<C-\\><C-N>", { desc = "terminal escape terminal mode" })
map("n", "<leader>th", "<cmd>ToggleTerm direction=horizontal<cr>", { desc = "ToggleTerm: horizontal" })
map("n", "<leader>tf", "<cmd>ToggleTerm direction=float<cr>", { desc = "ToggleTerm: float" })
map("n", "<Tab>", "<cmd>BufferLineCycleNext<cr>", { desc = "Next buffer" })
map("n", "<S-Tab>", "<cmd>BufferLineCyclePrev<cr>", { desc = "Previous buffer" })
map("n", "<leader>ba", "<cmd>BufferLineCloseOthers<CR>", { desc = "Close other buffers" })
map("n", "<leader>x", "<cmd>bdelete<CR>", { desc = "Close buffer" })

View File

@@ -11,5 +11,22 @@ return {
}, },
{ {
"hrsh7th/nvim-cmp", "hrsh7th/nvim-cmp",
},
{
'stevearc/conform.nvim',
opts = {
formatters_by_ft = {
lua = { "stylua" },
},
default_format_opts = {
lsp_format = "fallback",
},
format_on_save = { timeout_ms = 500 },
formatters = {
shfmt = {
append_args = { "-i", "2" },
},
},
},
} }
} }

View File

@@ -1,11 +0,0 @@
return {
"nvim-tree/nvim-tree.lua",
version = "*",
lazy = false,
dependencies = {
"nvim-tree/nvim-web-devicons",
},
config = function()
require("nvim-tree").setup {}
end,
}

View File

@@ -5,9 +5,4 @@ return {
priority = 1000, priority = 1000,
opts = {}, opts = {},
}, },
{
'akinsho/bufferline.nvim',
version = "*",
dependencies = 'nvim-tree/nvim-web-devicons'
}
} }

24
lua/plugins/windows.lua Normal file
View File

@@ -0,0 +1,24 @@
return {
{
"nvim-tree/nvim-tree.lua",
version = "*",
lazy = false,
dependencies = {
"nvim-tree/nvim-web-devicons",
},
config = function()
require("nvim-tree").setup {}
end,
},
{
"akinsho/toggleterm.nvim",
version = "*",
opts = {},
},
{
"akinsho/bufferline.nvim",
version = "*",
dependencies = "nvim-tree/nvim-web-devicons",
},
}

7
readme.md Normal file
View File

@@ -0,0 +1,7 @@
### Dependencies
Formatters
```
stylua
```