diff --git a/lua/plugins.lua b/lua/plugins.lua index a901f24..0f65979 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -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', 'q', ":Bdelete", {noremap=true}) end } + use 'ron-rs/ron.vim' + use { + -- To be configured! + 'numToStr/FTerm.nvim' + } end)