mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Merge pull request #342 from genebean/cheat
Work around bug in telescope-cheat.nvim
This commit is contained in:
commit
8633ef27dc
1 changed files with 14 additions and 2 deletions
|
|
@ -104,15 +104,27 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
extraLuaConfig = ''
|
extraLuaConfig = ''
|
||||||
|
-- NOTE: This will get the OS from Lua:
|
||||||
|
-- print(vim.loop.os_uname().sysname)
|
||||||
|
|
||||||
|
-- setup lazy.nvim
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
-- hack to deal with bug in telescope-cheat.nvim
|
||||||
|
-- https://github.com/nvim-telescope/telescope-cheat.nvim/issues/7
|
||||||
|
local cheat_dbdir = vim.fn.stdpath "data" .. "/databases"
|
||||||
|
if not vim.loop.fs_stat(cheat_dbdir) then
|
||||||
|
vim.loop.fs_mkdir(cheat_dbdir, 493)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- load additional settings
|
||||||
require("config.keymaps")
|
require("config.keymaps")
|
||||||
require("lazy").setup("plugins")
|
require("lazy").setup("plugins")
|
||||||
|
|
||||||
|
-- tell sqlite.lua where to find the bits it needs
|
||||||
vim.g.sqlite_clib_path = '${pkgs.sqlite.out}/lib/${sqlite_lib}'
|
vim.g.sqlite_clib_path = '${pkgs.sqlite.out}/lib/${sqlite_lib}'
|
||||||
-- NOTE: This will get the OS from Lua:
|
|
||||||
-- print(vim.loop.os_uname().sysname)
|
|
||||||
'';
|
'';
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
gcc # needed so treesitter can do compiling
|
gcc # needed so treesitter can do compiling
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue