chore(nvim):

- Hide deprecation messages
- conform.nvim: None lazy load, higher timeout
- vim: Lower keypress timeout to `300`
This commit is contained in:
Pratik Tripathy
2025-11-23 00:01:37 +05:30
parent 8c6278d7b6
commit 835cd42d57
4 changed files with 8 additions and 4 deletions

View File

@@ -19,3 +19,7 @@ vim.g.markdown_recommended_style = 0
vim.g.have_nerd_font = true
vim.opt.listchars = { tab = "» ", trail = "·", nbsp = "" }
-- WARN: Hides all LspSaga deprecation warnings
---@diagnostic disable-next-line: duplicate-set-field
vim.deprecate = function() end

View File

@@ -89,7 +89,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
}):map("<leader>dx")
-- Native lsp inline virtual text / inlay hints
if client and client.supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint) then
if client and client:supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint) then
vim.lsp.inlay_hint.enable(true)
vim.api.nvim_set_hl(0, "LspInlayHint", { fg = "#5c7086", bg = "NONE" })

View File

@@ -1,7 +1,7 @@
return {
{
"stevearc/conform.nvim",
lazy = true,
lazy = false,
event = { "BufWritePre" },
opts = {
formatters_by_ft = {
@@ -32,7 +32,7 @@ return {
format_on_save = {
lsp_fallback = true,
async = false,
timeout_ms = 500,
timeout_ms = 1000,
},
formatters = {
injected = { options = { ignore_errors = true } },

View File

@@ -27,7 +27,7 @@ set signcolumn=yes " Always show the signs column (before line number c
set scrolloff=10 " Cursor always at middle of the screen
set sidescrolloff=10
set updatetime=200 " No typing for this millisec -> write to swap file
set timeoutlen=500 " Multiple keys in keymaps must be pressed in these millisecs
set timeoutlen=300 " Multiple keys in keymaps must be pressed in these millisecs
set noswapfile " Turn off swapfiles
set history=10000 " Number of : commands to save
set undofile " Turn on undofiles (files not compatible across Vim & Nvim