193 lines
3.9 KiB
Lua
193 lines
3.9 KiB
Lua
local vim = vim
|
|
return {
|
|
{
|
|
"stevearc/conform.nvim",
|
|
-- event = 'BufWritePre', -- uncomment for format on save
|
|
opts = require "configs.conform",
|
|
event = { "BufReadPre", "BufNewFile" },
|
|
},
|
|
|
|
-- These are some examples, uncomment them if you want to see them work!
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
config = function()
|
|
require "configs.lspconfig"
|
|
end,
|
|
},
|
|
|
|
{
|
|
"lervag/wiki.vim",
|
|
lazy = false,
|
|
},
|
|
|
|
{
|
|
"lervag/vimtex",
|
|
lazy = false,
|
|
},
|
|
|
|
{
|
|
"mfussenegger/nvim-lint",
|
|
lazy = true,
|
|
event = { "BufReadPre", "BufNewFile" },
|
|
config = function()
|
|
require "configs.lint"
|
|
end,
|
|
},
|
|
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
opts = {
|
|
ensure_installed = {
|
|
"vim",
|
|
"lua",
|
|
"python",
|
|
"markdown",
|
|
"latex",
|
|
},
|
|
highlight = {
|
|
enable = true,
|
|
},
|
|
},
|
|
},
|
|
|
|
{
|
|
"nvim-treesitter/nvim-treesitter-context",
|
|
lazy = false,
|
|
config = function()
|
|
require("treesitter-context").setup {
|
|
enable = true,
|
|
max_lines = 0, -- No limit
|
|
}
|
|
end,
|
|
},
|
|
|
|
{
|
|
"rktjmp/paperplanes.nvim",
|
|
lazy = false,
|
|
config = function()
|
|
require("paperplanes").setup {
|
|
provider = "dpaste.org",
|
|
}
|
|
end,
|
|
},
|
|
|
|
{
|
|
"NvChad/nvcommunity",
|
|
{ import = "nvcommunity.git.diffview" },
|
|
-- { import = "nvcommunity.git.lazygit" },
|
|
{ import = "nvcommunity.completion.copilot" },
|
|
{
|
|
"copilot.lua",
|
|
cmd = "Copilot",
|
|
event = "InsertEnter",
|
|
config = function()
|
|
require("copilot").setup {
|
|
suggestion = {
|
|
enabled = true,
|
|
auto_trigger = true,
|
|
hide_during_completion = true,
|
|
debounce = 75,
|
|
keymap = {
|
|
accept = "<M-a>",
|
|
accept_word = false,
|
|
accept_line = false,
|
|
next = "<M-n>",
|
|
prev = "<M-p>",
|
|
dismiss = "<M-d>",
|
|
},
|
|
},
|
|
}
|
|
end,
|
|
},
|
|
},
|
|
|
|
{
|
|
"folke/trouble.nvim",
|
|
opts = {}, -- for default options, refer to the configuration section for custom setup.
|
|
cmd = "Trouble",
|
|
keys = {
|
|
{
|
|
"<leader>tx",
|
|
"<cmd>Trouble diagnostics toggle<cr>",
|
|
desc = "Diagnostics (Trouble)",
|
|
},
|
|
{
|
|
"<leader>tX",
|
|
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
|
|
desc = "Buffer Diagnostics (Trouble)",
|
|
},
|
|
{
|
|
"<leader>cs",
|
|
"<cmd>Trouble symbols toggle focus=false<cr>",
|
|
desc = "Symbols (Trouble)",
|
|
},
|
|
{
|
|
"<leader>cl",
|
|
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
|
|
desc = "LSP Definitions / references / ... (Trouble)",
|
|
},
|
|
{
|
|
"<leader>tL",
|
|
"<cmd>Trouble loclist toggle<cr>",
|
|
desc = "Location List (Trouble)",
|
|
},
|
|
{
|
|
"<leader>tQ",
|
|
"<cmd>Trouble qflist toggle<cr>",
|
|
desc = "Quickfix List (Trouble)",
|
|
},
|
|
},
|
|
},
|
|
|
|
{
|
|
"tpope/vim-surround",
|
|
lazy = false,
|
|
},
|
|
|
|
{
|
|
"echasnovski/mini.nvim",
|
|
version = "*",
|
|
config = function()
|
|
require("mini.diff").setup()
|
|
require("mini.pick").setup()
|
|
end,
|
|
},
|
|
|
|
{
|
|
"max397574/better-escape.nvim",
|
|
event = "InsertEnter",
|
|
config = function()
|
|
require("better_escape").setup()
|
|
end,
|
|
},
|
|
|
|
{
|
|
"aznhe21/actions-preview.nvim",
|
|
keys = {
|
|
{
|
|
"<leader>gf",
|
|
function()
|
|
require("actions-preview").code_actions()
|
|
end,
|
|
mode = { "n", "v" },
|
|
desc = "Show code actions",
|
|
silent = true,
|
|
},
|
|
},
|
|
config = function()
|
|
require("actions-preview").setup {
|
|
highlight_command = {
|
|
require("actions-preview.highlight").delta(),
|
|
},
|
|
}
|
|
end,
|
|
lazy = false,
|
|
},
|
|
|
|
{
|
|
"barreiroleo/ltex-extra.nvim",
|
|
ft = { "markdown", "tex" },
|
|
dependencies = { "neovim/nvim-lspconfig" },
|
|
},
|
|
}
|