This commit is contained in:
Kulvir Singh
2025-03-09 02:11:16 +05:30
parent 4966457528
commit 5270082cc0
3 changed files with 6 additions and 8 deletions

View File

@@ -136,10 +136,10 @@ return {
-- word under your cursor when your cursor rests there for a little while.
local client = vim.lsp.get_client_by_id(event.data.client_id)
if client and client.server_capabilities.documentHighlightProvider then
vim.api.nvim_create_autocmd({
vim.api.nvim_create_autocmd({ "CursorHold", "CursorHoldI" }, {
buffer = event.buf,
callback = vim.lsp.buf.document_highlight,
}, { "CursorHold", "CursorHoldI" })
})
vim.api.nvim_create_autocmd({ "CursorMoved", "CursorMovedI" }, {
buffer = event.buf,

View File

@@ -1,10 +1,8 @@
local opt = vim.opt
-- Use 4 space tabs
-- TODO: Change this back when no company work
opt.tabstop = 2
opt.softtabstop = 2
opt.shiftwidth = 2
opt.tabstop = 4
opt.softtabstop = 4
opt.shiftwidth = 4
opt.number = true
opt.relativenumber = true