nouveau truc

This commit is contained in:
Frizzus 2025-01-07 23:35:16 +01:00
parent 72c54e68ad
commit ca932c83df
4 changed files with 145 additions and 21 deletions

View file

@ -1,5 +1,4 @@
--[[
=====================================================================
==================== READ THIS BEFORE CONTINUING ====================
=====================================================================
@ -91,7 +90,7 @@ vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- Set to true if you have a Nerd Font installed and selected in the terminal
vim.g.have_nerd_font = false
vim.g.have_nerd_font = true
-- [[ Setting options ]]
-- See `:help vim.opt`
@ -157,20 +156,6 @@ vim.opt.cursorline = true
-- Minimal number of screen lines to keep above and below the cursor.
vim.opt.scrolloff = 10
-- custom settings
-- function Test()
-- print 'test'
-- end
-- vim.api.nvim_create_user_command('Test', Test(), {})
vim.cmd.colorscheme 'retrobox'
vim.cmd.set 'tabline=no'
vim.cmd.set 'nonumber'
vim.o.tabstop = 4
vim.o.shiftwidth = 4
vim.o.expandtab = true
--
-- [[ Basic Keymaps ]]
-- See `:help vim.keymap.set()`
@ -967,3 +952,10 @@ require('lazy').setup({
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et
local ls = require 'luasnip'
local snippets = require 'custom.plugins.snippets'
require('custom.plugins.custom_init').setup()
ls.add_snippets('tcl', snippets.tcl)
ls.add_snippets('typst', snippets.typst)
ls.add_snippets('c', snippets.c)
ls.add_snippets('cpp', snippets.c_header)