Adding lsp

This commit is contained in:
2025-06-08 12:56:55 +02:00
parent 965450fc11
commit bd65590251
13 changed files with 97 additions and 88 deletions

View File

@@ -1,3 +1,5 @@
print("advent of neovim")
require("config.lazy")
--
-- local o = vim.opt
@@ -13,8 +15,10 @@ require("config.lazy")
--
-- nvim_create_user_command("InsertTodayHeader", ':pu=strftime("# %a %d %b %Y")', {})
--
vim.opt.compatible = false
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "v:lua.MyCustomFoldExpr()"
vim.diagnostic.config({ virtual_text = true })
function _G.MyCustomFoldExpr()
local line = vim.fn.getline(vim.v.lnum)