This commit is contained in:
2025-12-26 13:15:38 -05:00
parent b3cfc0a0b8
commit 0aca32f1f1
4 changed files with 62 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
---@type vim.lsp.Config ---@type vim.lsp.Config
return { return {
cmd = { 'clangd' }, cmd = { 'clangd' },
filetypes = { 'c', 'h' }, filetypes = { 'c', 'h', 'cpp' },
root_markers = { 'Makefile', '.git' }, root_markers = { 'Makefile', '.git' },
} }

View File

@@ -12,3 +12,5 @@ for _, k in ipairs({ "h", "j", "k", "l" }) do
end end
keymap("n", "<leader>f", ":Pick files<CR>") keymap("n", "<leader>f", ":Pick files<CR>")
keymap("n", "<leader>lf", vim.lsp.buf.format)

View File

@@ -4,9 +4,54 @@ vim.pack.add {
{ src = "https://github.com/mason-org/mason.nvim" }, { src = "https://github.com/mason-org/mason.nvim" },
{ src = "https://github.com/scottmckendry/cyberdream.nvim" }, { src = "https://github.com/scottmckendry/cyberdream.nvim" },
{ src = "https://github.com/nvim-mini/mini.pick" }, { src = "https://github.com/nvim-mini/mini.pick" },
{ src = "https://github.com/rafamadriz/friendly-snippets" },
{
src = "https://github.com/saghen/blink.cmp",
version = "1.*",
},
} }
require("mason").setup {} require("mason").setup {}
require("mini.pick").setup {} require("mini.pick").setup {}
vim.cmd("colorscheme cyberdream") vim.cmd("colorscheme cyberdream")
require('blink.cmp').setup {
fuzzy = { implementation = 'prefer_rust_with_warning' },
signature = { enabled = true },
keymap = {
preset = "default",
["<C-y>"] = { "select_and_accept" },
["<C-p>"] = { "select_prev", "fallback" },
["<C-n>"] = { "select_next", "fallback" },
["<C-b>"] = { "scroll_documentation_down", "fallback" },
["<C-f>"] = { "scroll_documentation_up", "fallback" },
-- ["<C-e>"] = { "hide" },
},
appearance = {
use_nvim_cmp_as_default = true,
nerd_font_variant = "normal",
},
completion = {
documentation = {
auto_show = true,
auto_show_delay_ms = 200,
}
},
cmdline = {
keymap = {
preset = 'inherit',
['<CR>'] = { 'accept_and_enter', 'fallback' },
},
},
sources = {
default = { "lsp", "snippets" },
providers = {
snippets = { opts = { friendly_snippets = true, } }
}
}
}

View File

@@ -1,15 +1,24 @@
{ {
"plugins": { "plugins": {
"blink.cmp": {
"rev": "d0c5196dae32c53cde1208161554906f5b982de8",
"src": "https://github.com/saghen/blink.cmp",
"version": "'1.*'"
},
"cyberdream.nvim": { "cyberdream.nvim": {
"rev": "a43b45423e8494898c353c0604e0b2e4e99bd056", "rev": "a43b45423e8494898c353c0604e0b2e4e99bd056",
"src": "https://github.com/scottmckendry/cyberdream.nvim" "src": "https://github.com/scottmckendry/cyberdream.nvim"
}, },
"friendly-snippets": {
"rev": "572f5660cf05f8cd8834e096d7b4c921ba18e175",
"src": "https://github.com/rafamadriz/friendly-snippets"
},
"mason.nvim": { "mason.nvim": {
"rev": "57e5a8addb8c71fb063ee4acda466c7cf6ad2800", "rev": "57e5a8addb8c71fb063ee4acda466c7cf6ad2800",
"src": "https://github.com/mason-org/mason.nvim" "src": "https://github.com/mason-org/mason.nvim"
}, },
"mini.pick": { "mini.pick": {
"rev": "c488bbaa74b4b9e9ba49ebaffdd9f19b15b64a4f", "rev": "0c56dc3ef9b15e9659ce09331fdc82449349701b",
"src": "https://github.com/nvim-mini/mini.pick" "src": "https://github.com/nvim-mini/mini.pick"
}, },
"simplyfile.nvim": { "simplyfile.nvim": {