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

View File

@@ -8,7 +8,9 @@ keymap("v", "J", ":m '>+1<CR>gv=gv")
keymap("v", "K", ":m '<-2<CR>gv=gv")
for _, k in ipairs({ "h", "j", "k", "l" }) do
keymap({ "n", "i", "v" }, "<C-" .. k .. ">", "<C-w><C-" .. k .. ">")
keymap({ "n", "i", "v" }, "<C-" .. k .. ">", "<C-w><C-" .. k .. ">")
end
keymap("n", "<leader>f", ":Pick files<CR>")
keymap("n", "<leader>lf", vim.lsp.buf.format)

View File

@@ -1,12 +1,57 @@
vim.g.mapleader = " "
vim.pack.add {
{ src = "https://github.com/mason-org/mason.nvim" },
{ src = "https://github.com/scottmckendry/cyberdream.nvim" },
{ src = "https://github.com/nvim-mini/mini.pick" },
{ src = "https://github.com/mason-org/mason.nvim" },
{ src = "https://github.com/scottmckendry/cyberdream.nvim" },
{ 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("mini.pick").setup {}
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, } }
}
}
}