This commit is contained in:
Sebastian 2025-08-06 20:49:49 +02:00
parent 2887c2ed8c
commit bab5ad2587
4 changed files with 42 additions and 5 deletions

View file

@ -50,5 +50,4 @@ vim.keymap.set('v', '<A-k>', ":m '<-2<CR>gv=gv", { desc = 'Move selection up' })
vim.keymap.set('n', '<C-,>', 'gcc', { desc = 'Comment line', remap = true })
vim.keymap.set('v', '<C-,>', 'gc', { desc = 'Comment selection', remap = true })
-- Copy to clipboard with Ctrl+C
vim.keymap.set('v', '<C-c>', '"+y', { desc = 'Copy to clipboard' })

View file

@ -17,7 +17,7 @@ vim.opt.updatetime = 250
vim.opt.timeoutlen = 300
-- Enable inline diagnostics
vim.diagnostic.config({
vim.diagnostic.config {
virtual_text = {
prefix = '',
source = 'always',
@ -26,11 +26,22 @@ vim.diagnostic.config({
underline = true,
update_in_insert = false,
severity_sort = true,
})
}
vim.opt.splitright = true
vim.opt.splitbelow = true
vim.opt.list = false
vim.opt.inccommand = 'split'
vim.opt.cursorline = true
vim.opt.scrolloff = 10
vim.opt.scrolloff = 10
-- Set indentation for specific filetypes
vim.api.nvim_create_autocmd('FileType', {
pattern = { 'typescript', 'javascript', 'typescriptreact', 'javascriptreact', 'html', 'css' },
callback = function()
vim.opt_local.tabstop = 2
vim.opt_local.shiftwidth = 2
vim.opt_local.expandtab = true
end,
})