Final plugins

This commit is contained in:
Miguel Palhas
2024-10-05 09:47:33 +01:00
parent 9d235dea9d
commit b718a8b75e
15 changed files with 306 additions and 30 deletions
+29
View File
@@ -0,0 +1,29 @@
return {
{
"hrsh7th/nvim-cmp",
opts = function()
require "configs.cmp"
end,
},
-- {
-- "zbirenbaum/copilot.lua",
-- cmd = "Copilot",
-- event = "VeryLazy",
-- config = function()
-- require("copilot").setup({
-- suggestion = { enabled = false },
-- panel = { enabled = false },
-- })
-- end,
-- },
--
-- {
-- "zbirenbaum/copilot-cmp",
-- event = "VeryLazy",
-- dependencies = { "hrsh7th/cmp-nvim-lsp" },
-- config = function()
-- require("copilot_cmp").setup()
-- end,
-- },
}
+52 -12
View File
@@ -1,14 +1,54 @@
return {
{
"m4xshen/hardtime.nvim",
dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
opts = {
restricted_keys = {
["w"] = { "n", "x" },
["W"] = { "n", "x" },
["b"] = { "n", "x" },
["B"] = { "n", "x" },
},
},
},
{
"m4xshen/hardtime.nvim",
lazy = false,
dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
opts = {
restricted_keys = {
["w"] = { "n", "x" },
["W"] = { "n", "x" },
["b"] = { "n", "x" },
["B"] = { "n", "x" },
},
},
},
{
"smoka7/hop.nvim",
event = "VeryLazy",
version = "*",
opts = {
keys = "etovxqpdygfblzhckisuran",
},
keys = {
{
"ff",
function()
local dir = require("hop.hint").HintDirection
require("hop").hint_char1 { direction = dir.AFTER_CURSOR }
end,
desc = "go to char (forward)",
},
{
"FF",
function()
local dir = require("hop.hint").HintDirection
require("hop").hint_char1 { direction = dir.BEFORE_CURSOR }
end,
desc = "go to char (backward)",
},
{ "2ff", "<cmd>HopChar2<cr>", desc = "go to bigram" },
{ "<leader>fl", "<cmd>HopLineStart<cr>" },
{ "<leader>fp", "<cmd>HopPattern<cr>" },
{ "<leader>fw", "<cmd>HopWord<cr>" },
},
},
{
"tzachar/local-highlight.nvim",
event = "VeryLazy",
config = function()
require("local-highlight").setup()
end,
},
}
+10
View File
@@ -0,0 +1,10 @@
return {
{
"windwp/nvim-spectre",
dependencies = { "nvim-lua/plenary.nvim" },
-- stylua: ignore
keys = {
{ "<leader>S", function() require("spectre").open() end, desc = "Replace in files (Spectre)", },
},
},
}
+19
View File
@@ -0,0 +1,19 @@
return {
{
"NeogitOrg/neogit",
cmd = "Neogit",
dependencies = {
"nvim-lua/plenary.nvim", -- required
"sindrets/diffview.nvim", -- optional - Diff integration
-- Only one of these is needed.
"nvim-telescope/telescope.nvim", -- optional
"ibhagwan/fzf-lua", -- optional
"echasnovski/mini.pick", -- optional
},
config = true,
keys = {
{ "<leader>g", "<cmd>Neogit<CR>", desc = "Neogit" },
},
},
}
+1 -1
View File
@@ -1,7 +1,7 @@
return {
{
"stevearc/conform.nvim",
-- event = 'BufWritePre', -- uncomment for format on save
event = "BufWritePre",
opts = require "configs.conform",
},
}
+4
View File
@@ -11,4 +11,8 @@ return {
version = "^5", -- Recommended
lazy = false, -- This plugin is already lazy
},
{"pmizio/typescript-tools.nvim",dependencies={"nvim-lua/plenary.nvim", "neovim/nvim-lspconfig"}, config=function()
require "configs.typescript-tools"
end}
}
+21
View File
@@ -0,0 +1,21 @@
return {
{
"nvim-telescope/telescope.nvim",
opts = function()
require "configs.telescope"
end,
keys = {
{ "<C-p>", require("telescope.builtin").find_files, desc = "Find Files (root dir)" },
{ "<C-f>", require("telescope.builtin").grep_string, desc = "Fast string grep" },
{
"<C-f>",
function()
local selection = vim.fn.getregion(vim.fn.getpos ".", vim.fn.getpos "v", { mode = vim.fn.mode() })
require("telescope.builtin").live_grep { default_text = table.concat(selection) }
end,
desc = "fuzzy find selection",
mode = "v",
},
},
},
}
+62
View File
@@ -0,0 +1,62 @@
return {
{
"folke/trouble.nvim",
cmd = { "Trouble" },
dependencies = "kyazdani42/nvim-web-devicons",
opts = { use_diagnostic_signs = true },
keys = {
{
"<leader>xx",
"<cmd>Trouble diagnostics toggle<cr>",
desc = "Diagnostics (Trouble)",
},
{
"<leader>xX",
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
desc = "Buffer Diagnostics (Trouble)",
},
{
"<leader>xt",
"<cmd>Trouble todo toggle<cr>",
desc = "Todos (Trouble)",
},
{
"<leader>o",
"<cmd>Trouble symbols toggle focus=false<cr>",
desc = "Symbols Outline (Trouble)",
},
{
"<leader>cl",
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
desc = "LSP Definitions / references / ... (Trouble)",
},
{
"<leader>xL",
"<cmd>Trouble loclist toggle<cr>",
desc = "Location List (Trouble)",
},
{
"<leader>xQ",
"<cmd>Trouble qflist toggle<cr>",
desc = "Quickfix List (Trouble)",
},
},
},
{
"folke/todo-comments.nvim",
event = "VeryLazy",
opts = {
signs = true,
highlight = {
pattern = [[.*<(KEYWORDS)\s*:?]],
},
search = {
pattern = [[\b(KEYWORDS)\b]],
},
},
config = function(_, opts)
require("todo-comments").setup(opts)
end,
},
}
+32
View File
@@ -0,0 +1,32 @@
return {
{
"levouh/tint.nvim",
config = function()
require("tint").setup {
tint = -10,
tint_background_colors = true,
window_ignore_function = function(winid)
local bufid = vim.api.nvim_win_get_buf(winid)
local buftype = vim.api.nvim_get_option_value("buftype", { buf = bufid })
return buftype == "nofile"
end,
}
end,
},
{
"luukvbaal/statuscol.nvim",
config = function()
local builtin = require "statuscol.builtin"
require("statuscol").setup {
relculright = true,
segments = {
{ text = { builtin.foldfunc }, click = "v:lua.ScFa" },
{ text = { builtin.lnumfunc, " " }, click = "v:lua.ScLa" },
{ sign = { name = { ".*" }, maxwidth = 1, colwidth = 1 }, click = "v:lua.ScSa" },
},
}
end,
},
}