Files
dotfiles/common/.config/nvim/after/ftplugin/markdown.lua
Pratik Tripathy 1a1f25be32 chore: Annoyance fixes across all
- bashrc: source `.profile` and not `profile`
- kitty: Remove background-blur, it was making terminal slow
- kitty: ssh: Rename the terminal to `xterm-256color` cause most cloud linux
  don't have kitty terminal info by default
- nvim: `get_active_clients` marked for removal by nvim, replaced
- nvim: completion: don't auto complete on command mode
- nvim: Use `flash.nvim` for jumping instead of `vim-easymotion`
- vim: Open file tree `<leader>e` -> `<leader><tab>`
- profile: KVM: Use the system access by default
2025-09-09 17:02:05 +05:30

23 lines
650 B
Lua

require("shared.text_settings").setup()
local function check_codelens_support()
local clients = vim.lsp.get_clients({ bufnr = 0 })
for _, c in ipairs(clients) do
if c.server_capabilities.codeLensProvider then
return true
end
end
return false
end
vim.api.nvim_create_autocmd({ "TextChanged", "InsertLeave", "CursorHold", "LspAttach", "BufEnter" }, {
buffer = bufnr,
callback = function()
if check_codelens_support() then
vim.lsp.codelens.refresh({ bufnr = 0 })
end
end,
})
-- trigger codelens refresh
vim.api.nvim_exec_autocmds("User", { pattern = "LspAttached" })