Updated mappings and plugins

This commit is contained in:
2024-09-15 18:46:50 +02:00
parent e52272e77a
commit 89478fac86
16 changed files with 36 additions and 336 deletions

View File

@@ -5,15 +5,15 @@ local fn = vim.fn
local M = {}
function M.run()
local dir = fn.expand('<afile>:p:h')
local dir = fn.expand("<afile>:p:h")
if dir:find('%l+://') == 1 then
return
end
if dir:find("%l+://") == 1 then
return
end
if fn.isdirectory(dir) == 0 then
fn.mkdir(dir, 'p')
end
if fn.isdirectory(dir) == 0 then
fn.mkdir(dir, "p")
end
end
return M

View File

@@ -1,9 +1,9 @@
local on_attach = function(client, bufnr)
local function opts(desc)
if desc then
return { noremap = true, silent = true, buffer = bufnr, desc = desc }
return { silent = true, buffer = bufnr, desc = desc }
else
return { noremap = true, silent = true, buffer = bufnr }
return { silent = true, buffer = bufnr }
end
end