ref(nvim): format

This commit is contained in:
Léana 江 2023-12-21 20:44:52 +01:00 committed by Léana 江
parent 6ca290b871
commit 58c63bd4d2
3 changed files with 7 additions and 7 deletions

View file

@ -7,7 +7,7 @@ require "nvim-treesitter.configs".setup {
-- Disable for large files
disable = function(lang, buf)
local max_filesize = 100 * 1024 -- 100 KB
local max_filesize = 100 * 1024 -- 100 KB
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
if ok and stats and stats.size > max_filesize then
return true
@ -26,9 +26,9 @@ require "nvim-treesitter.configs".setup {
["ic"] = "@class.inner",
},
selection_modes = {
["@parameter.outer"] = "v", -- charwise
["@function.outer"] = "V", -- linewise
["@class.outer"] = "<c-v>", -- blockwise
["@parameter.outer"] = "v", -- charwise
["@function.outer"] = "V", -- linewise
["@class.outer"] = "<c-v>", -- blockwise
},
include_surrounding_whitespace = true,
},