forked from cursorless-dev/cursorless
-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.lua
33 lines (30 loc) · 1.1 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
-- This config file is used for local development and testing.
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
require("lazy").setup({
-- Allows title detection by neovim-talon while testing
"hands-free-vim/talon.nvim",
-- Provides concise mode display while testing. This is useful because talon.nvim sets cmdheight = 0
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
})
-- Allows better range selection debugging - it allows us to see single character ranges.
vim.o.guicursor = "a:hor20-blink100"
local repo_root = os.getenv("CURSORLESS_REPO_ROOT")
if not repo_root then
error("CURSORLESS_REPO_ROOT is not set. Run via debug-neovim.sh script.")
end
vim.opt.runtimepath:append(repo_root .. "/cursorless.nvim")
require("talon").setup()
require("cursorless").setup()
require("lualine").setup()