458d25d
Branches > main > 458d25d > files / nvim / lua / lsp.lua
vimore
Commit: 458d25d6dce55e999ef201ccf17695efb99d9c09
Parent: c93c8eb
5 changed files:
nvim/lua/jump.lua view file
@@ -1,3 +1,4 @@+--- Jump script --- License: 0BSD local ns = vim.api.nvim_create_namespace("https://grahp.dev/jump.nvim") nvim/lua/lazy_ui.lua view file
@@ -1,5 +1,5 @@ --- UI stuff that doesn't need to load before first paint---- If it is needed for first paint, it'll be in ./ui.lua+--- If it is needed for first paint, it'll be in ui.lua local api = vim.api local ac = api.nvim_create_autocmdnvim/lua/lsp.lua view file
@@ -1,7 +1,6 @@ local lsp = vim.lsp local keymap = vim.keymap.set --- TODO should be buffer-local? local function on_attach(client, bufnr) keymap("n", "gd", lsp.buf.definition, {buffer = bufnr}) keymap("n", "gr", lsp.buf.references, {buffer = bufnr})nvim/lua/opts.lua view file
@@ -1,5 +1,7 @@+--- Opts, loaded lazily+--- UI stuff is in ui.lua local o = vim.opt-local ac = vim.api.nvim_create_autocmd+local autocmd = vim.api.nvim_create_autocmd o.shiftwidth = 2 o.tabstop = 2@@ -14,7 +16,7 @@ o.gdefault = true --- Prevents o/<CR> on comments from starting a new comment-ac("Filetype", {pattern = "*", callback = function()+autocmd("Filetype", {pattern = "*", callback = function() o.formatoptions = "" end}) nvim/lua/ui.lua view file
@@ -1,3 +1,4 @@+--- UI stuff that needs to be done before first paint local o = vim.opt --- Disables the welcome screen :p@@ -10,6 +11,7 @@ o.signcolumn = "no" o.ruler = false+ --- Search o.hlsearch = false o.incsearch = true