This commit is contained in:
Belal Elsabbagh
2025-05-19 10:28:59 +03:00
parent 4a30f4e705
commit 12fc965843
7 changed files with 308 additions and 8 deletions

View File

@@ -2,11 +2,9 @@ vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
vim.g.have_nerd_font = true
vim.opt.number = true
vim.opt.relativenumber = true
-- vim.opt.mouse = 'a'
vim.opt.showmode = false
vim.schedule(function()
vim.opt.clipboard = 'unnamedplus'
end)
vim.opt.breakindent = true
vim.opt.undofile = true
vim.opt.ignorecase = true
@@ -23,6 +21,10 @@ vim.opt.cursorline = true
vim.opt.scrolloff = 10
-- vim.opt.textwidth = 80
vim.schedule(function()
vim.opt.clipboard = 'unnamedplus'
end)
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
@@ -142,6 +144,7 @@ vim.lsp.enable {
'luals',
'pyright',
'ruff',
'sveltels',
'rust-analyzer',
'tsls',
'yamlls',