This commit is contained in:
Christoph J. Scherr 2024-07-09 23:18:40 +02:00
commit f1c2b07ace
7 changed files with 33 additions and 17 deletions

View File

@ -7,7 +7,6 @@ vim.opt.signcolumn = 'yes'
vim.opt.clipboard = '' -- don't just use the system clipboard
vim.opt.wrap = false
vim.opt.breakindent = false
vim.opt.spell = false
vim.opt.conceallevel = 2
vim.opt.concealcursor = 'c'
vim.opt.undofile = true
@ -52,7 +51,7 @@ vim.opt.startofline = false -- Cursor in same column for few commands
vim.opt.splitbelow = true -- Splits open bottom right
vim.opt.splitright = true
vim.opt.breakindentopt = { shift = 2, min = 20 }
vim.opt.formatoptions = '' -- see :h fo-table & :h formatoptions
vim.opt.formatoptions = 'trowacnlm1jp' -- see :h fo-table & :h formatoptions
vim.opt.breakindent = true
-- Diff
@ -73,7 +72,7 @@ vim.o.guifont = 'FiraCode Nerd Font:h15'
vim.opt.termguicolors = true
vim.opt.shortmess = 'xsTOInfFitloCaAs'
vim.opt.showmode = true -- Show mode in cmd window
vim.opt.scrolloff = 10 -- Keep at least n lines above/below
vim.opt.scrolloff = 6 -- Keep at least n lines above/below
vim.opt.sidescrolloff = 10 -- Keep at least n lines left/right
vim.opt.numberwidth = 2 -- Minimum number of columns to use for the line number
vim.opt.number = true -- Show line numbers
@ -136,8 +135,8 @@ vim.opt.pumblend = 10 -- Popup blend
-- Spelling correction
-- ===
vim.opt.spell = false -- manually enable spell with `set spell` or `<leader>ts`
vim.opt.spelllang = 'en,de_de,'
vim.opt.spell = true -- manually enable spell with `set spell` or `<leader>ts`
vim.opt.spelllang = 'en,de_de'
vim.opt.spellsuggest = 'double,50,timeout:5000'
-- autocommands

View File

@ -42,3 +42,14 @@ vim.api.nvim_create_autocmd('FileType', {
vim.opt_local.concealcursor = ''
end,
})
-- disable auto formatting for some filetypes
vim.api.nvim_create_autocmd('FileType', {
group = augroup,
pattern = {
'TelescopePrompt',
},
callback = function()
vim.opt_local.formatoptions = ''
end,
})

View File

@ -185,7 +185,7 @@ local servers = {
},
},
ltex = {
use_spellfile = false,
use_spellfile = true,
settings = {
ltex = {
checkFrequency = 'save', -- shut up while i'm just editing, see <https://github.com/folke/noice.nvim/issues/166>

View File

@ -0,0 +1,13 @@
return {
{
'kdheepak/lazygit.nvim',
keys = {
{ '<leader>gg', '<cmd>LazyGit<cr>', desc = 'Open LazyGit' },
},
cmd = 'LazyGit',
-- optional for floating window border decoration
dependencies = {
'nvim-lua/plenary.nvim',
},
},
}

View File

@ -127,17 +127,7 @@ return {
}
end,
},
{
'kdheepak/lazygit.nvim',
keys = {
{ '<leader>gg', '<cmd>LazyGit<cr>', desc = 'Open LazyGit' },
},
cmd = 'LazyGit',
-- optional for floating window border decoration
dependencies = {
'nvim-lua/plenary.nvim',
},
},
{ 'echasnovski/mini.trailspace', lazy = false, version = false, opts = { only_in_normal_buffers = true } },
{
'folke/which-key.nvim',
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
@ -632,6 +622,7 @@ return {
vim.b.minitrailspace_disable = true
vim.opt_local.list = false
vim.opt_local.colorcolumn = '0'
vim.opt_local.spell = false
end,
})
end,

View File

@ -382,3 +382,5 @@ lemmy
selfhosting
ELO
FIDE
BDD
Pentesting

Binary file not shown.