This commit is contained in:
Dmitri 2025-09-23 19:27:35 +02:00
parent f80bcc68b6
commit afd441c0f2
Signed by: kanopo
GPG Key ID: 759ADD40E3132AC7
5 changed files with 38 additions and 35 deletions

View File

@ -1,17 +1,17 @@
-- Bootstrap lazy.nvim -- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git" local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({ vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" }, { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" }, { out, "WarningMsg" },
{ "\nPress any key to exit..." }, { "\nPress any key to exit..." },
}, true, {}) }, true, {})
vim.fn.getchar() vim.fn.getchar()
os.exit(1) os.exit(1)
end end
end end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)

View File

@ -1,25 +1,26 @@
return { return {
'saghen/blink.cmp', 'saghen/blink.cmp',
-- optional: provides snippets for the snippet source -- optional: provides snippets for the snippet source
dependencies = { 'rafamadriz/friendly-snippets' }, dependencies = { "L3MON4D3/LuaSnip", version = "v2.*" },
version = '1.*', version = '1.*',
opts = { opts = {
-- 'default' (recommended) for mappings similar to built-in completions (C-y to accept) completion = {
-- 'super-tab' for mappings similar to vscode (tab to accept) list = {
-- 'enter' for enter to accept selection = { preselect = false, auto_insert = false }
-- 'none' for no mappings }
-- },
-- All presets have the following mappings: signature = { enabled = true },
-- C-space: Open menu or open docs if already open snippets = { preset = "luasnip" },
-- C-n/C-p or Up/Down: Select next/previous item appearance = { nerd_font_variant = "mono" },
-- C-e: Hide menu
-- C-k: Toggle signature help (if signature.enabled = true)
--
-- See :h blink-cmp-config-keymap for defining your own keymap
keymap = { preset = 'default' },
sources = { sources = {
default = { 'lsp', 'path', 'snippets', 'buffer' }, default = {
"lsp",
"path",
"snippets",
"buffer",
},
}, },
}, },
opts_extend = { "sources.default" } opts_extend = { "sources.default" }
} }

View File

@ -11,7 +11,6 @@ return {
-- Optional tools installer (safe to keep) -- Optional tools installer (safe to keep)
{ "WhoIsSethDaniel/mason-tool-installer.nvim" }, { "WhoIsSethDaniel/mason-tool-installer.nvim" },
}, },
event = { "BufReadPre", "BufNewFile" },
-- Single place to edit servers/tools in the future -- Single place to edit servers/tools in the future
lsp_servers = { lsp_servers = {
@ -25,7 +24,7 @@ return {
"cssls", "cssls",
"clangd", "clangd",
"rust_analyzer", "rust_analyzer",
"gopls", -- "gopls",
}, },
tools = { tools = {
"luacheck", "luacheck",

View File

@ -1,9 +1,9 @@
return { return {
'stevearc/oil.nvim', 'stevearc/oil.nvim',
opts = {}, opts = {},
dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if prefer nvim-web-devicons dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if prefer nvim-web-devicons
config = function() config = function()
require("oil").setup() require("oil").setup()
vim.keymap.set('n', '<leader>ee', "<cmd>:Oil<cr>") vim.keymap.set('n', '<leader>fe', "<cmd>:Oil<cr>")
end end
} }

View File

@ -5,3 +5,6 @@ const Page = () => {
} }