Add changes

This commit is contained in:
OscarSen 2025-01-04 22:00:24 -05:00
parent 1f46ee863c
commit 23c6f0fffa
3 changed files with 16 additions and 6 deletions

View File

@ -176,10 +176,10 @@ vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagn
vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' }) vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
-- TIP: Disable arrow keys in normal mode -- TIP: Disable arrow keys in normal mode
vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>') -- vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>') -- vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>') -- vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>') -- vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
-- Keybinds to make split navigation easier. -- Keybinds to make split navigation easier.
-- Use CTRL+<hjkl> to switch between windows -- Use CTRL+<hjkl> to switch between windows
@ -835,7 +835,7 @@ require('lazy').setup({
-- Load the colorscheme here. -- Load the colorscheme here.
-- Like many other themes, this one has different styles, and you could load -- Like many other themes, this one has different styles, and you could load
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
vim.cmd.colorscheme 'tokyonight-night' vim.cmd.colorscheme 'default'
-- You can configure highlights by doing something like: -- You can configure highlights by doing something like:
vim.cmd.hi 'Comment gui=none' vim.cmd.hi 'Comment gui=none'

View File

@ -11,7 +11,8 @@ return {
-- VimTeX configuration goes here, e.g. -- VimTeX configuration goes here, e.g.
vim.g.vimtex_view_method = 'skim' vim.g.vimtex_view_method = 'skim'
vim.g.vimtex_view_skim_sync = 1 vim.g.vimtex_view_skim_sync = 1
vim.g.vimtex_view_skim_activate = 1 -- vim.g.vimtex_view_skim_activate = 1
vim.g.vimtex_view_skim_no_select = 1
vim.g.vimtex_compiler_latexmk = { vim.g.vimtex_compiler_latexmk = {
aux_dir = 'aux', aux_dir = 'aux',
out_dir = '', out_dir = '',

View File

@ -12,5 +12,14 @@ return {
local cmp_autopairs = require 'nvim-autopairs.completion.cmp' local cmp_autopairs = require 'nvim-autopairs.completion.cmp'
local cmp = require 'cmp' local cmp = require 'cmp'
cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done()) cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done())
local Rule = require 'nvim-autopairs.rule'
local npairs = require 'nvim-autopairs'
npairs.add_rules {
-- Rule('$$', '$$', 'tex'),
Rule('$', '$', 'tex'),
Rule('\\(', '\\)', 'tex'),
}
end, end,
} }