indented blocks as text objects

This commit is contained in:
Ivar Fatland
2023-12-02 15:35:19 +01:00
+5 -3
View File
@@ -109,7 +109,7 @@ local function packer_startup(use)
use {-- FuzzyFind your way through previously open files, or project files. use {-- FuzzyFind your way through previously open files, or project files.
'nvim-telescope/telescope.nvim', 'nvim-telescope/telescope.nvim',
tag = '0.1.1', tag = '0.1.4',
requires = { requires = {
{'nvim-lua/plenary.nvim'}, {'nvim-lua/plenary.nvim'},
} }
@@ -117,6 +117,8 @@ local function packer_startup(use)
use 'folke/zen-mode.nvim' -- For centering the text on screen giving a better editing experience in full-screen mode. use 'folke/zen-mode.nvim' -- For centering the text on screen giving a better editing experience in full-screen mode.
use 'michaeljsmith/vim-indent-object' -- Treats lines of the same indentation as a new text object, access with i and I.
if packer_bootstrap then --Comes after packages if packer_bootstrap then --Comes after packages
require('packer').sync() require('packer').sync()
end end
@@ -280,8 +282,8 @@ local function get_run_script_function(script_name)
return function() return function()
---@type "Linux" | "Darwin" | "Windows_NT" ---@type "Linux" | "Darwin" | "Windows_NT"
local os_name = vim.loop.os_uname().sysname local os_name = vim.loop.os_uname().sysname
if os_name ~= "Linux" then if os_name == "Windows_NT" then
error('run_file not implemented for non-linux platforms') error('run_file not implemented for non-unix platforms')
end end
local run_script_path = vim.fn.getcwd() .. "/" .. script_name local run_script_path = vim.fn.getcwd() .. "/" .. script_name