~havi/nvim.d

75055d0905b3a2fa8309f16257c9eb3f3f1fe677 — havi a month ago 599c43e
style: fmt
M after/ftplugin/go.lua => after/ftplugin/go.lua +1 -1
@@ 72,4 72,4 @@ wk.register({
   buffer = vim.api.nvim_get_current_buf(),
   noremap = true,
})
vim.api.nvim_exec([[ autocmd BufWritePre *.go :silent! lua require('go-nvim.format').goimport() ]], false)
\ No newline at end of file
vim.api.nvim_exec([[ autocmd BufWritePre *.go :silent! lua require('go-nvim.format').goimport() ]], false)

M lua/plugins.lua => lua/plugins.lua +10 -10
@@ 510,11 510,11 @@ packer.startup(function(use)
   })
   use({
      "anuvyklack/pretty-fold.nvim",
      requires = {"anuvyklack/nvim-keymap-amend"},
      requires = { "anuvyklack/nvim-keymap-amend" },
      event = { "BufEnter" },
      config = [[require("plugins.languages.pretty-fold-nvim").config()]],
   })
   use {'kevinhwang91/nvim-bqf', ft = 'qf'}
   use({ "kevinhwang91/nvim-bqf", ft = "qf" })
   -- mermaid.js
   use({ "mracos/mermaid.vim", ft = { "mermaid", "mmd" } })
   -- ron


@@ 532,7 532,7 @@ packer.startup(function(use)
   use({
      "simrat39/rust-tools.nvim",
      ft = { "rust", "rs" },
      cond = [[require("plugins.languages.rust-tools-nvim").cond()]],
      -- cond = [[require("plugins.languages.rust-tools-nvim").cond()]],
      config = [[require("plugins.languages.rust-tools-nvim").config()]],
   })
   use({


@@ 541,16 541,16 @@ packer.startup(function(use)
      requires = { "nvim-lua/plenary.nvim" },
      config = [[require("plugins.languages.crates-nvim").config()]],
   })
   use {
   use({
      "nastevens/vim-cargo-make",
      requires = {"cespare/vim-toml"},
      after = {"filetype.nvim"},
      requires = { "cespare/vim-toml" },
      after = { "filetype.nvim" },
      ft = "cargo-make",
   }
   use {
   })
   use({
      "nastevens/vim-duckscript",
      ft = {"cargo-make","duckscript"},
   }
      ft = { "cargo-make", "duckscript" },
   })
   -- ────────────────────────────────────────────────────────────
   -- lua
   use({

M lua/plugins/core/lsp/nvim-lspconfig.lua => lua/plugins/core/lsp/nvim-lspconfig.lua +0 -7
@@ 24,13 24,6 @@ function M.config()
   vim.fn.sign_define("DiagnosticSignWarn", { texthl = "DiagnosticWarn", text = " " })
   vim.fn.sign_define("DiagnosticSignInfo", { texthl = "DiagnosticInfo", text = " " })
   vim.fn.sign_define("DiagnosticSignHint", { texthl = "DiagnosticHint", text = " " })
   vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
      signs = true,
      underline = false,
      virtual_text = true,
      show_diagnostic_autocmds = { "InsertLeave", "TextChanged" }, -- NEW OPTION
      diagnostic_delay = 500,  -- NEW OPTION
   })

   -- vim.e.config({ virtual_text = false })
   -- -- enable border for hover

M lua/plugins/languages/pretty-fold-nvim.lua => lua/plugins/languages/pretty-fold-nvim.lua +3 -3
@@ 9,9 9,9 @@ local M = {}
function M.config()
   local to_require_map = {
      ["nvim-keymap-amend"] = { ["keymap-amend"] = {} },
      ["pretty-fold.nvim"] = { 
         ["pretty-fold"] = {}, 
         ["pretty-fold.preview"] = {} ,
      ["pretty-fold.nvim"] = {
         ["pretty-fold"] = {},
         ["pretty-fold.preview"] = {},
      },
   }
   for plugin_name, modules in pairs(to_require_map) do