Files
2026-08-18 23:29:09 +01:00

40 lines
688 B
Lua

vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.undofile = true
vim.g.mapleader = " "
vim.opt.expandtab = true
vim.opt.tabstop = 4
vim.opt.shiftwidth = 0
vim.o.scrolloff = 20
vim.opt.signcolumn = 'yes'
vim.diagnostic.enable = true
vim.diagnostic.config({
virtual_lines = false,
})
vim.o.updatetime = 300
vim.api.nvim_create_autocmd("CursorHold", {
callback = function()
local diagnostics = vim.diagnostic.get(0, {
lnum = vim.fn.line(".") - 1,
})
if #diagnostics > 0 then
vim.diagnostic.open_float(nil, {
focus = false,
scope = "line",
})
end
end,
})