Files
dotfiles/lua/plugins/editor.lua
Mikhail Kilin 7213bec4dc Initial neovim config
Lazy.nvim plugin manager, LSP (rust-analyzer, clangd, ts_ls, zls),
treesitter, telescope, bufferline, neo-tree, gitsigns, lazygit,
alabaster theme, persistence sessions, nvim-cmp, lualine, which-key.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 23:40:37 +03:00

66 lines
1.2 KiB
Lua

return {
-- Autopairs
{
"windwp/nvim-autopairs",
event = "InsertEnter",
opts = {},
},
-- Comment toggling
{
"numToStr/Comment.nvim",
keys = {
{ "gcc", mode = "n", desc = "Toggle comment" },
{ "gc", mode = "v", desc = "Toggle comment" },
},
opts = {},
},
-- TODO comments
{
"folke/todo-comments.nvim",
event = { "BufReadPost", "BufNewFile" },
dependencies = { "nvim-lua/plenary.nvim" },
opts = {},
keys = {
{ "<leader>ft", "<cmd>TodoTelescope<cr>", desc = "Find TODOs" },
},
},
-- Which-key: shows keybinding hints
{
"folke/which-key.nvim",
event = "VeryLazy",
opts = {},
},
-- File explorer
{
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim",
},
keys = {
{ "<leader>n", "<cmd>Neotree toggle<cr>", desc = "Toggle file explorer" },
},
opts = {
filesystem = {
filtered_items = {
visible = true,
hide_dotfiles = false,
},
},
},
},
-- Crates.nvim for Cargo.toml
{
"saecki/crates.nvim",
event = { "BufRead Cargo.toml" },
opts = {},
},
}