mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
chore(nvim):
- Hide deprecation messages - conform.nvim: None lazy load, higher timeout - vim: Lower keypress timeout to `300`
This commit is contained in:
@@ -19,3 +19,7 @@ vim.g.markdown_recommended_style = 0
|
|||||||
|
|
||||||
vim.g.have_nerd_font = true
|
vim.g.have_nerd_font = true
|
||||||
vim.opt.listchars = { tab = "» ", trail = "·", nbsp = "␣" }
|
vim.opt.listchars = { tab = "» ", trail = "·", nbsp = "␣" }
|
||||||
|
|
||||||
|
-- WARN: Hides all LspSaga deprecation warnings
|
||||||
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
|
vim.deprecate = function() end
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
|||||||
}):map("<leader>dx")
|
}):map("<leader>dx")
|
||||||
|
|
||||||
-- Native lsp inline virtual text / inlay hints
|
-- 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.lsp.inlay_hint.enable(true)
|
||||||
vim.api.nvim_set_hl(0, "LspInlayHint", { fg = "#5c7086", bg = "NONE" })
|
vim.api.nvim_set_hl(0, "LspInlayHint", { fg = "#5c7086", bg = "NONE" })
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
lazy = true,
|
lazy = false,
|
||||||
event = { "BufWritePre" },
|
event = { "BufWritePre" },
|
||||||
opts = {
|
opts = {
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
@@ -32,7 +32,7 @@ return {
|
|||||||
format_on_save = {
|
format_on_save = {
|
||||||
lsp_fallback = true,
|
lsp_fallback = true,
|
||||||
async = false,
|
async = false,
|
||||||
timeout_ms = 500,
|
timeout_ms = 1000,
|
||||||
},
|
},
|
||||||
formatters = {
|
formatters = {
|
||||||
injected = { options = { ignore_errors = true } },
|
injected = { options = { ignore_errors = true } },
|
||||||
|
|||||||
@@ -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 scrolloff=10 " Cursor always at middle of the screen
|
||||||
set sidescrolloff=10
|
set sidescrolloff=10
|
||||||
set updatetime=200 " No typing for this millisec -> write to swap file
|
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 noswapfile " Turn off swapfiles
|
||||||
set history=10000 " Number of : commands to save
|
set history=10000 " Number of : commands to save
|
||||||
set undofile " Turn on undofiles (files not compatible across Vim & Nvim
|
set undofile " Turn on undofiles (files not compatible across Vim & Nvim
|
||||||
|
|||||||
Reference in New Issue
Block a user