Compare commits

..

3 Commits

Author SHA1 Message Date
dbcab8ada3 disable 42 2026-06-28 00:58:03 +02:00
d66b0a8fb5 configs 2026-06-28 00:57:08 +02:00
cfe6ea12f7 improvements 2026-06-28 00:39:10 +02:00
6 changed files with 16 additions and 12 deletions

View File

@@ -1 +1,4 @@
vim.opt_local.textwidth = 80
local o = vim.opt_local
o.textwidth = 80
o.expandtab = false

View File

@@ -0,0 +1,3 @@
local o = vim.opt_local
o.expandtab = false

View File

@@ -69,12 +69,12 @@ map("n", "gl", vim.diagnostic.setloclist, { desc = "diagnostic list" })
-- diagnostics only on error.
map("n", "g]", function()
vim.diagnostic.goto_next({
vim.lsp.diagnostic.goto_next({
severity = vim.diagnostic.severity.ERROR,
})
end, { desc = "next error" })
map("n", "g[", function()
vim.diagnostic.goto_prev({
vim.lsp.diagnostic.goto_prev({
severity = vim.diagnostic.severity.ERROR,
})
end, { desc = "prev error" })

View File

@@ -5,9 +5,11 @@ local o = vim.opt
g.mapleader = " " -- Uses space as the global leader key.
g.maplocalleader = " " -- Uses space as the local leader key.
-- Interface
-- Layout and display
o.number = true -- Shows absolute line numbers.
o.relativenumber = true -- Shows relative numbers for easier motion.
o.cursorline = true -- Highlights the line under the cursor.
o.textwidth = 80 -- Wraps inserted text after 80 columns when formatting is active.
o.scrolloff = 8 -- Keeps context lines visible around the cursor.
o.signcolumn = "yes" -- Always reserves space for signs in the gutter.
o.colorcolumn = "+1" -- Highlights the preferred maximum line width.
@@ -23,11 +25,11 @@ o.listchars = {
o.termguicolors = true -- Enables full RGB color support.
o.mouse = "" -- Disables mouse support.
-- Editing
-- Indentation and editing
o.tabstop = 4 -- Renders tab characters as four columns.
o.softtabstop = 4 -- Makes tab/backspace feel like four spaces.
o.shiftwidth = 4 -- Uses four columns for each indent step.
o.expandtab = false -- Keeps literal tab characters instead of spaces.
o.expandtab = true -- Inserts spaces when indenting by default.
o.smartindent = true -- Adds indentation automatically on new lines.
o.swapfile = false -- Disables swapfile creation.
@@ -38,4 +40,3 @@ o.spelllang = { "en_us" } -- Uses US English for spell checking.
-- Shell
o.shell = "bash" -- Runs shell commands through bash.

View File

@@ -4,4 +4,4 @@ require("romanzy.plugins.oil")
require("romanzy.plugins.telescope")
require("romanzy.plugins.nvim-treesitter")
require("romanzy.plugins.lsp")
require("romanzy.plugins.header42")
-- require("romanzy.plugins.header42")

View File

@@ -15,13 +15,10 @@ require("telescope").setup({
filesize_limit = 0.1, -- in MB
},
initial_mode = "insert",
winblend = 30,
-- winblend = 30,
file_ignore_patterns = {
"%.git/.*",
"^%./lib/.*",
"^%./bin/.*",
"%.cache/.*",
".*%.[od]",
},
layout_strategy = "flex",
},