-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.lua
41 lines (37 loc) · 1017 Bytes
/
test.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
-- -- ENCODING -> UTF-8 etc.
-- local function encoding()
-- local fileencoding = vim.opt.fileencoding:get()
-- if fileencoding == nil then
-- -- if fileencoding == "nil" then
-- fileencoding = ""
-- end
-- -- return fileencoding ~= "" and string.format("%s", encoding) or ""
-- return tostring(fileencoding)
-- end
-- function StatuslineRender()
-- ---@diagnostic disable-next-line: param-type-mismatch
-- return table.concat({
-- vim.fn.expand("%"),
-- " ",
-- "pepe",
-- })
-- end
--
-- vim.o.statusline = "%!v:lua.StatuslineRender()"
-- vim.keymap.set({ "n", "v" }, "<leader>F", function()
-- local clients = vim.lsp.get_clients({
-- method = "textDocument/format",
-- })
--
-- if #clients > 0 then
-- vim.lsp.buf.format()
-- else
-- print("no formatter :(")
-- end
-- end, { desc = "LSP formatting" })
--
-- vim.keymap.set("n", "<leader>L", function ()
-- require("telescope.builtin").find_files({
-- cwd = "/run"
-- })
-- end)