diff --git a/common/.config/nvim/lua/config/options.lua b/common/.config/nvim/lua/config/options.lua index 3ee7739..bbbfc81 100644 --- a/common/.config/nvim/lua/config/options.lua +++ b/common/.config/nvim/lua/config/options.lua @@ -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 diff --git a/common/.config/nvim/lua/core/lsp.lua b/common/.config/nvim/lua/core/lsp.lua index c1c2e4c..5c3deda 100644 --- a/common/.config/nvim/lua/core/lsp.lua +++ b/common/.config/nvim/lua/core/lsp.lua @@ -89,7 +89,7 @@ vim.api.nvim_create_autocmd("LspAttach", { }):map("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" }) diff --git a/common/.config/nvim/lua/plugins/formatting.lua b/common/.config/nvim/lua/plugins/formatting.lua index 3f8723a..893f29a 100644 --- a/common/.config/nvim/lua/plugins/formatting.lua +++ b/common/.config/nvim/lua/plugins/formatting.lua @@ -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 } }, diff --git a/common/.vim/configs.vim b/common/.vim/configs.vim index b25ea74..7225e49 100644 --- a/common/.vim/configs.vim +++ b/common/.vim/configs.vim @@ -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