f03fbc5

Branches > main > f03fbc5 > files

update nvim

Grahp, 2026-01-30

Commit: f03fbc5556d53d66e55cb5cd9d16c84ef04b3d65
Parent: 1e97751

3 changed files:

nvim/init.lua modified (view file)

@@ -6,6 +6,7 @@  require("opts") vim.schedule(function() require("keybindings") end)+vim.schedule(function() require("lsp") end)   --- Still to do:

nvim/lua/colors.lua modified (view file)

@@ -53,6 +53,7 @@ hl(0, "Statement", {link = "Pink"}) hl(0, "Identifier", {link = "Pink"}) hl(0, "Type", {link = "Green"})+hl(0, "DiagnosticUnnecessary", {link = "Gray"})  --- Vim stuff @@ -114,9 +115,12 @@ hl(0, "ClojureSpecial", {link = "Red"}) hl(0, "ClojureMacro", {link = "Red"}) hl(0, "ClojureDeref", {link = "Red"})-+hl(0, "ClojureDispatch", {link = "Red"}) hl(0, "ClojureConstant", {link = "Orange"}) +hl(0, "rubyStringDelimiter", {link = "String"})+hl(0, "rubyInterpolationDelimiter", {link = "Red"})+ hl(0, "@lsp.type.macro.clojure", {link = "Red"}) hl(0, "@keyword.lua", {link = "Blue"}) hl(0, "@constructor.lua", {link = "Punctuation"})

nvim/lua/lsp.lua added (view file)

@@ -0,0 +1,16 @@+local lsp = vim.lsp+local keymap = vim.keymap.set++local function on_attach(client, bufnr)+  keymap("n", "gd", lsp.buf.definition)+  keymap("n", "gr", lsp.buf.references)+  keymap("n", "gi", lsp.buf.implementation)+  keymap("n", "<Space>r", lsp.buf.rename)+  keymap("n", "<Space>c", lsp.buf.code_action)+end++lsp.config("clojure-lsp", {filetypes = {"clojure"},+                           cmd = {"clojure-lsp"},+                           on_attach = on_attach,+                           root_markers = {"project.clj", "deps.edn", "build.boot", "shadow-cljs.edn", ".git", "bb.edn"}})+lsp.enable("clojure-lsp")