Compare commits

...

3 Commits

Author SHA1 Message Date
bf77f1563b treesitter 2026-02-09 09:48:46 -06:00
fd3266912a bufferline binds 2026-02-09 09:44:37 -06:00
5238f24acf stylua 2026-02-09 09:41:09 -06:00
7 changed files with 58 additions and 30 deletions

View File

@@ -1 +1 @@
require("config.lazy")
require "config.lazy"

View File

@@ -1,7 +1,7 @@
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
local out = vim.fn.system { "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
@@ -17,16 +17,16 @@ vim.opt.rtp:prepend(lazypath)
vim.g.mapleader = " "
vim.g.maplocalleader = " "
require("config.maps")
require("config.opts")
require "config.maps"
require "config.opts"
require("lazy").setup({
require("lazy").setup {
spec = {
{ import = "plugins" },
},
install = { colorscheme = { "tokyonight" } },
checker = { enabled = true },
})
}
vim.cmd [[colorscheme tokyonight]]

View File

@@ -26,4 +26,5 @@ map("n", "<leader>tf", "<cmd>ToggleTerm direction=float<cr>", { desc = "ToggleTe
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" })
map("n", "<leader>x", "<cmd>BufferLinePickClose<CR>", { desc = "Close buffer" })
map("n", "<leader>bc", "<cmd>BufferLinePick<CR>", { desc = "Close buffer" })

View File

@@ -1,8 +1,8 @@
return {
{
'windwp/nvim-autopairs',
"windwp/nvim-autopairs",
event = "InsertEnter",
config = true
config = true,
},
{
"folke/ts-comments.nvim",
@@ -13,7 +13,7 @@ return {
"hrsh7th/nvim-cmp",
},
{
'stevearc/conform.nvim',
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
lua = { "stylua" },
@@ -28,5 +28,5 @@ return {
},
},
},
}
},
}

View File

@@ -1,5 +1,5 @@
return {
{
"iamcco/markdown-preview.nvim"
}
"iamcco/markdown-preview.nvim",
},
}

27
lua/plugins/syntax.lua Normal file
View File

@@ -0,0 +1,27 @@
return {
{
"nvim-treesitter/nvim-treesitter",
indent = { enable = true },
highlight = { enable = true },
folds = { enable = true },
ensure_installed = {
"bash",
"diff",
"html",
"json",
"jsonc",
"lua",
"luadoc",
"luap",
"markdown",
"markdown_inline",
"printf",
"regex",
"toml",
"vim",
"vimdoc",
"xml",
"yaml",
},
},
}

View File

@@ -6,10 +6,10 @@ return {
{
"<leader>?",
function()
require("which-key").show({ global = false })
require("which-key").show { global = false }
end,
desc = "Buffer Local Keymaps (which-key)",
},
},
}
},
}