Nvim: minor cmake and telescope changes

This commit is contained in:
Robert Kmieć
2024-04-22 23:54:16 +02:00
parent cd711ea4bf
commit 6e13939c5b
5 changed files with 20 additions and 21 deletions

View File

@@ -9,6 +9,7 @@ return {
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
throttle = true, -- Throttles plugin updates (may improve performance)
max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
mode = 'topline',
patterns = { -- Match patterns for TS nodes. These get wrapped to match at word boundaries.
-- For all filetypes
-- Note that setting an entry here replaces all other patterns for this entry.
@@ -35,7 +36,15 @@ return {
-- Treat patterns.rust as a Lua pattern (i.e "^impl_item$" will
-- exactly match "impl_item" only)
rust = true,
}
},
on_attach = function(buf)
local max_filesize = 100 * 1024
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 false
end
return true
end
}
end
}