Compare commits

...

3 Commits

3 changed files with 7 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
vim.loader.enable()
vim.g.mapleader = ' ' vim.g.mapleader = ' '
vim.g.maplocalleader = ' ' vim.g.maplocalleader = ' '
@@ -11,7 +13,7 @@ end
pcall(function() require('local') end) pcall(function() require('local') end)
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' 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', vim.fn.system({ 'git', 'clone', '--filter=blob:none',
'https://github.com/folke/lazy.nvim.git', '--branch=stable', lazypath }) 'https://github.com/folke/lazy.nvim.git', '--branch=stable', lazypath })
end end

View File

@@ -52,7 +52,7 @@ vim.api.nvim_create_user_command('Remove', function(opts)
end end
end end
-- Actually remove the file using the selected callback. -- Actually remove the file using the selected callback.
vim.loop.fs_unlink(path, callback) vim.uv.fs_unlink(path, callback)
end, { bang = true }) end, { bang = true })
-- :Move the file associated with the current buffer -- :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 if vim.fn.isdirectory(dest) ~= 0 then
dest = vim.fn.resolve(dest .. '/' .. vim.fn.expand('%:t')) dest = vim.fn.resolve(dest .. '/' .. vim.fn.expand('%:t'))
end end
vim.loop.fs_rename(source, dest, function(err, success) vim.uv.fs_rename(source, dest, function(err, success)
if success then if success then
vim.schedule(function() vim.schedule(function()
vim.cmd.edit(dest) vim.cmd.edit(dest)
@@ -87,7 +87,7 @@ vim.api.nvim_create_user_command('Rename', function(opts)
dest = vim.fn.resolve(dir .. '/' .. opts.args) dest = vim.fn.resolve(dir .. '/' .. opts.args)
end end
local buffer = vim.api.nvim_get_current_buf() 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 if not success then
error(err) error(err)
else else

View File

@@ -91,7 +91,7 @@ vim.opt.foldlevel = 20
vim.opt.foldmethod = 'expr' vim.opt.foldmethod = 'expr'
vim.opt.foldexpr = 'nvim_treesitter#foldexpr()' vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
vim.opt.foldtext = '' vim.opt.foldtext = ''
vim.opt.fillchars = 'fold: ' vim.opt.fillchars = { fold = ' ' }
-- Enable all mouse features -- Enable all mouse features
vim.opt.mouse = 'a' vim.opt.mouse = 'a'