nvim basic config

This commit is contained in:
2026-06-01 22:43:05 +02:00
parent 3bcce095ae
commit 8e63b919e3
6 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
require("romanzy")
print("custom config initialized")

View File

@@ -0,0 +1,2 @@
require("romanzy.set")
require("romanzy.remap")

View File

@@ -0,0 +1,14 @@
vim.g.mapleader = " "
vim.g.maplocalleader = " "
vim.keymap.set("n", "<leader>dl", vim.cmd.Ex)
vim.keymap.set("n", "<leader>s", ":set spell!<CR>")
-- terminal exploration...
-- original to exit terminal mode on Esc
--vim.keymap.set("t", "<Esc>", "<C-\\><C-n>")
-- new one to go back to main window
vim.keymap.set("t", "<Esc>", "<C-\\><C-n><C-w>k")
vim.keymap.set("n", "<leader>t", "<C-w>ji")

View File

@@ -0,0 +1,24 @@
vim.opt.nu = true
vim.opt.relativenumber = true
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.opt.smartindent = true
vim.opt.wrap = false -- no line wrapping...
vim.opt.incsearch = true
vim.opt.termguicolors = true
vim.opt.scrolloff = 8
vim.opt.signcolumn = "yes"
vim.opt.updatetime = 50
vim.opt.colorcolumn = "80"
vim.opt.spelllang = { 'en_us' }