Updated mappings and plugins
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user