cleanup

Sat, 08 Apr 2023 14:07:39 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 08 Apr 2023 14:07:39 -0500
changeset 1101
40419d8e3cbb
parent 1100
27bf2b97c98f
child 1102
33dd24d2b740

cleanup

.config/nvim/after/ftplugin/qf.lua file | annotate | diff | comparison | revisions
.config/nvim/lua/config/lsp.lua file | annotate | diff | comparison | revisions
.config/nvim/lua/config/maps.lua file | annotate | diff | comparison | revisions
.config/nvim/lua/lazy-bootstrap.lua file | annotate | diff | comparison | revisions
.config/nvim/lua/local/encrypted.lua file | annotate | diff | comparison | revisions
.config/nvim/lua/plugins/editing.lua file | annotate | diff | comparison | revisions
--- a/.config/nvim/after/ftplugin/qf.lua
+++ b/.config/nvim/after/ftplugin/qf.lua
@@ -20,7 +20,7 @@ if is_loc then
 
     -- Hide lsp tagfunc line/col seek references
     fn.matchadd("Conceal", [[|\zs\\V\\%\|c\ze|]])
-    fn.matchadd("Conceal", [[|\\V\\%\d\+\zsl\\%]], 10, -1, {conceal = ","})
+    fn.matchadd("Conceal", [[|\\V\\%\d\+\zsl\\%]], 10, -1, { conceal = "," })
 
     -- highlight match in line. if tagname begins with / the rest is a \v
     -- regex. match must be between vertical bars, so its the 2nd column.
--- a/.config/nvim/lua/config/lsp.lua
+++ b/.config/nvim/lua/config/lsp.lua
@@ -17,7 +17,7 @@ vim.diagnostic.config({
 vim.api.nvim_create_autocmd("LspAttach", {
   once = true,
   group = "lsp_attach",
-  callback = function(args)
+  callback = function()
     vim.opt.number = true
     vim.opt.updatetime = 250
   end,
@@ -39,7 +39,7 @@ local autoformat_filetypes = { elixir = 
 
 vim.api.nvim_create_autocmd("BufWritePre", {
   group = vim.api.nvim_create_augroup("lsp_autoformat", { clear = true }),
-  callback = function(opts, bufnr)
+  callback = function()
     if autoformat_filetypes[vim.bo.filetype] then
       vim.lsp.buf.format({ timeout_ms = 100 })
     end
--- a/.config/nvim/lua/config/maps.lua
+++ b/.config/nvim/lua/config/maps.lua
@@ -77,8 +77,12 @@ vim.api.nvim_create_autocmd("LspAttach",
 
     map("n", "<leader>d", vim.diagnostic.open_float, bufopts)
     map("n", "<leader>ld", vim.diagnostic.setqflist, bufopts)
-    map("n", "[d", function() vim.diagnostic.goto_prev({float = false}) end, bufopts)
-    map("n", "]d", function() vim.diagnostic.goto_next({float = false}) end, bufopts)
+    map("n", "[d", function()
+      vim.diagnostic.goto_prev({ float = false })
+    end, bufopts)
+    map("n", "]d", function()
+      vim.diagnostic.goto_next({ float = false })
+    end, bufopts)
 
     map("n", "gD", vim.lsp.buf.declaration, bufopts)
     map("n", "gd", vim.lsp.buf.definition, bufopts)
--- a/.config/nvim/lua/lazy-bootstrap.lua
+++ b/.config/nvim/lua/lazy-bootstrap.lua
@@ -13,13 +13,6 @@ vim.opt.rtp:prepend(vim.env.LAZY or lazy
 
 require("lazy").setup({
   spec = {
-    -- {
-    --   "themercorp/themer.lua",
-    --   priority = 1000,
-    --   opts = {
-    --     -- colorscheme = "jellybeans",
-    --   },
-    -- },
     {
       "rebelot/kanagawa.nvim",
       priority = 1000,
--- a/.config/nvim/lua/local/encrypted.lua
+++ b/.config/nvim/lua/local/encrypted.lua
@@ -10,7 +10,7 @@ local function autocmd(event, opts)
 end
 
 autocmd({ "BufReadPre", "FileReadPre" }, {
-  command = [[ setl noswapfile noundofile nobackup viminfo= ]]
+  command = [[ setl noswapfile noundofile nobackup viminfo= ]],
 })
 
 autocmd("BufReadPost", function(_)
--- a/.config/nvim/lua/plugins/editing.lua
+++ b/.config/nvim/lua/plugins/editing.lua
@@ -35,7 +35,9 @@ return {
   {
     "editorconfig/editorconfig-vim",
     event = { "BufReadPost", "BufNewFile" },
-    cond = function() return vim.fn.has("nvim-0.9") == 0 end,
+    cond = function()
+      return vim.fn.has("nvim-0.9") == 0
+    end,
   },
 
   "tpope/vim-unimpaired",

mercurial