summaryrefslogtreecommitdiffstats
path: root/nvim/lua
diff options
context:
space:
mode:
authorOri Perry <48057913+oriori1703@users.noreply.github.com>2025-05-11 03:16:03 +0300
committerGitHub <noreply@github.com>2025-05-10 20:16:03 -0400
commita29ae2c5108cafb4d926946bd911005f7a9bb309 (patch)
treea600675a2daf12ae2b10d24699179afe93db9bf3 /nvim/lua
parent3d4ce34c17a8179220618486a03321ec6ac502b3 (diff)
downloaddots-a29ae2c5108cafb4d926946bd911005f7a9bb309.tar.gz
Replace vim.opt with vim.o (#1495)
* Replace vim.opt with vim.o Because it offers a nicer interface and info on hover. For now leave vim.opt when using the table interface (until vim.o with tables is implemented) * Add type hint for vim.opt.rtp * Add a comment about using vim.opt instead of vim.o
Diffstat (limited to 'nvim/lua')
-rw-r--r--nvim/lua/kickstart/plugins/lint.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/nvim/lua/kickstart/plugins/lint.lua b/nvim/lua/kickstart/plugins/lint.lua
index 907c6bf..dec42f0 100644
--- a/nvim/lua/kickstart/plugins/lint.lua
+++ b/nvim/lua/kickstart/plugins/lint.lua
@@ -50,7 +50,7 @@ return {
-- Only run the linter in buffers that you can modify in order to
-- avoid superfluous noise, notably within the handy LSP pop-ups that
-- describe the hovered symbol using Markdown.
- if vim.opt_local.modifiable:get() then
+ if vim.bo.modifiable then
lint.try_lint()
end
end,