Compare commits
3 Commits
9a6765df45
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| ba5fd1c33b | |||
| ff14f16bbd | |||
| 00b5d44396 |
4
init.lua
4
init.lua
@@ -1,3 +1,5 @@
|
||||
vim.loader.enable()
|
||||
|
||||
vim.g.mapleader = ' '
|
||||
vim.g.maplocalleader = ' '
|
||||
|
||||
@@ -11,7 +13,7 @@ end
|
||||
pcall(function() require('local') end)
|
||||
|
||||
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
if not vim.uv.fs_stat(lazypath) then
|
||||
vim.fn.system({ 'git', 'clone', '--filter=blob:none',
|
||||
'https://github.com/folke/lazy.nvim.git', '--branch=stable', lazypath })
|
||||
end
|
||||
|
||||
@@ -52,7 +52,7 @@ vim.api.nvim_create_user_command('Remove', function(opts)
|
||||
end
|
||||
end
|
||||
-- Actually remove the file using the selected callback.
|
||||
vim.loop.fs_unlink(path, callback)
|
||||
vim.uv.fs_unlink(path, callback)
|
||||
end, { bang = true })
|
||||
|
||||
-- :Move the file associated with the current buffer
|
||||
@@ -62,7 +62,7 @@ vim.api.nvim_create_user_command('Move', function(opts)
|
||||
if vim.fn.isdirectory(dest) ~= 0 then
|
||||
dest = vim.fn.resolve(dest .. '/' .. vim.fn.expand('%:t'))
|
||||
end
|
||||
vim.loop.fs_rename(source, dest, function(err, success)
|
||||
vim.uv.fs_rename(source, dest, function(err, success)
|
||||
if success then
|
||||
vim.schedule(function()
|
||||
vim.cmd.edit(dest)
|
||||
@@ -87,7 +87,7 @@ vim.api.nvim_create_user_command('Rename', function(opts)
|
||||
dest = vim.fn.resolve(dir .. '/' .. opts.args)
|
||||
end
|
||||
local buffer = vim.api.nvim_get_current_buf()
|
||||
vim.loop.fs_rename(source, dest, function(err, success)
|
||||
vim.uv.fs_rename(source, dest, function(err, success)
|
||||
if not success then
|
||||
error(err)
|
||||
else
|
||||
|
||||
@@ -91,7 +91,7 @@ vim.opt.foldlevel = 20
|
||||
vim.opt.foldmethod = 'expr'
|
||||
vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
|
||||
vim.opt.foldtext = ''
|
||||
vim.opt.fillchars = 'fold: '
|
||||
vim.opt.fillchars = { fold = ' ' }
|
||||
|
||||
-- Enable all mouse features
|
||||
vim.opt.mouse = 'a'
|
||||
|
||||
Reference in New Issue
Block a user