overhaul of some dotfiles
This commit is contained in:
@@ -1,6 +1,23 @@
|
||||
require "nvchad.options"
|
||||
|
||||
-- add yours here!
|
||||
local o = vim.opt
|
||||
|
||||
-- local o = vim.o
|
||||
-- o.cursorlineopt ='both' -- to enable cursorline!
|
||||
o.relativenumber = true -- relative line numbers for fast navigation
|
||||
o.scrolloff = 8 -- keep 8 lines visible above/below cursor
|
||||
o.sidescrolloff = 8
|
||||
o.wrap = false -- no line wrapping
|
||||
o.undofile = true -- persist undo history across sessions
|
||||
o.splitbelow = true -- horizontal splits open below
|
||||
o.splitright = true -- vertical splits open to the right
|
||||
o.colorcolumn = "120" -- column ruler at 120 chars
|
||||
o.cursorline = true -- highlight current line
|
||||
|
||||
-- Go uses real tabs; everything else uses 4-space soft tabs
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "go",
|
||||
callback = function()
|
||||
vim.opt_local.expandtab = false
|
||||
vim.opt_local.tabstop = 4
|
||||
vim.opt_local.shiftwidth = 4
|
||||
end,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user