main
maye 2025-05-20 19:05:51 +08:00
parent 3f78f99244
commit 1456a51539
4 changed files with 31 additions and 4 deletions

View File

@ -2,6 +2,7 @@
"blink.cmp": { "branch": "main", "commit": "022521a8910a5543b0251b21c9e1a1e989745796" },
"conform.nvim": { "branch": "master", "commit": "a4bb5d6c4ae6f32ab13114e62e70669fa67745b9" },
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
"fzf-lua": { "branch": "main", "commit": "8adf950093af5361621cf52208d64995b1af78b5" },
"gitsigns.nvim": { "branch": "main", "commit": "ee0606259ee5d5dd40398be26755048e8965086e" },
"gruvbox.nvim": { "branch": "main", "commit": "00e38a379bab3389e187b3953566d67d494dfddd" },
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },

View File

@ -3,7 +3,7 @@ local not_enabled_filetype = { "markdown" }
---@module 'blink.cmp'
---@type blink.cmp.Config
local opts = {
keymap = { preset = "default" },
keymap = { preset = "super-tab" },
completion = {
documentation = {
auto_show = true,

23
lua/plugins/fzf.lua Normal file
View File

@ -0,0 +1,23 @@
return {
{
"ibhagwan/fzf-lua",
dependencies = { "nvim-tree/nvim-web-devicons" },
opts = {},
config = function()
local fzf_lua = require("fzf-lua")
vim.keymap.set("n", "<C-p>", fzf_lua.files, {})
vim.keymap.set("n", "<C-d>", function()
fzf_lua.diagnostics_workspace({ multiline = false })
end, {})
vim.keymap.set("n","<leader>fg",fzf_lua.live_grep,{})
vim.keymap.set("n", "<leader>rg", fzf_lua.registers, {})
vim.keymap.set("n", "<leader>gs", fzf_lua.git_status, {})
vim.keymap.set("n", "<leader>qf", fzf_lua.quickfix, {})
vim.keymap.set({ "n", "v" }, "<leader>ca", fzf_lua.lsp_code_actions, {})
end,
},
}

View File

@ -1,7 +1,10 @@
return {
"neovim/nvim-lspconfig",
-- cond = not require("commons").tools.is_version_gte_0_11(),
-- cond = not require("commons").tools.is_version_gte_0_11(),
dependencies = { { "saghen/blink.cmp" } },
config = function()
end,
key = {
{ "<leader>gd", vim.lsp.buf.definition, { "n" }, desc = "Go to definition" },
{ "<leader>gD", vim.lsp.buf.declaration, { "n" }, desc = "Go to declaration" },
},
config = function() end,
}