Fix sqlite and make dir. fix suda. add ron and fterm (to be configured)
This commit is contained in:
parent
04d97575a7
commit
023a2ff575
|
@ -46,7 +46,7 @@ return require('packer').startup(function(use)
|
|||
use {
|
||||
'tami5/sqlite.lua',
|
||||
config = function()
|
||||
if vim.fn.has('win32') then
|
||||
if vim.fn.has('win32') == 1 then
|
||||
-- FIXME need to download the sqlite3.dll from sqlite.org and place in config folder
|
||||
vim.g.sqlite_clib_path = vim.fn.stdpath('config') .. '/sqlite3.dll'
|
||||
end
|
||||
|
@ -60,6 +60,9 @@ return require('packer').startup(function(use)
|
|||
local actions = require('telescope.actions');
|
||||
local actions_generate = require('telescope.actions.generate');
|
||||
|
||||
local db_dir = vim.fn.stdpath('data') .. '/databases'
|
||||
os.execute('mkdir ' .. db_dir)
|
||||
|
||||
tele.setup{
|
||||
defaults = {
|
||||
prompt_prefix = " ",
|
||||
|
@ -89,7 +92,7 @@ return require('packer').startup(function(use)
|
|||
}
|
||||
},
|
||||
history = {
|
||||
path = vim.fn.stdpath('data') .. '/databases/telescope_history.sqlite3',
|
||||
path = db_dir .. '/telescope_history.sqlite3',
|
||||
limit = 100,
|
||||
},
|
||||
layout_config = {
|
||||
|
@ -208,7 +211,7 @@ return require('packer').startup(function(use)
|
|||
}
|
||||
use {
|
||||
'lambdalisue/suda.vim',
|
||||
config = function()
|
||||
setup = function()
|
||||
vim.g.suda_smart_edit = 1
|
||||
end,
|
||||
cond = function()
|
||||
|
@ -222,6 +225,11 @@ return require('packer').startup(function(use)
|
|||
vim.api.nvim_set_keymap('n', '<leader>q', "<cmd>:Bdelete<CR>", {noremap=true})
|
||||
end
|
||||
}
|
||||
use 'ron-rs/ron.vim'
|
||||
use {
|
||||
-- To be configured!
|
||||
'numToStr/FTerm.nvim'
|
||||
}
|
||||
end)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue