Compare commits

...

2 Commits

Author SHA1 Message Date
2a63e1d8ef terminal 2026-02-06 15:45:54 -06:00
9499cc8072 luaformat 2026-02-06 14:29:42 -06:00
4 changed files with 52 additions and 18 deletions

View File

@@ -1,3 +1,24 @@
local map = vim.keymap.set
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" })

View File

@@ -1,15 +1,32 @@
return {
{
{
'windwp/nvim-autopairs',
event = "InsertEnter",
config = true
},
{
},
{
"folke/ts-comments.nvim",
event = "VeryLazy",
opts = {},
},
},
{
"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,
}

7
readme.md Normal file
View File

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