Compare commits
2 Commits
c5f70a427a
...
023a2ff575
Author | SHA1 | Date |
---|---|---|
Vivianne | 023a2ff575 | |
Vivianne | 04d97575a7 |
10
init.vim
10
init.vim
|
@ -97,7 +97,15 @@ nnoremap <leader>fq <cmd>Telescope quickfix<cr>
|
|||
nnoremap <leader>fc <cmd>Telescope command_history<cr>
|
||||
nnoremap <leader>fs <cmd>Telescope search_history<cr>
|
||||
|
||||
command CDC cd %:p:h
|
||||
function! StripSuda(p)
|
||||
return substitute(a:p, 'suda://', '', '')
|
||||
endfunction
|
||||
|
||||
function! ChangeCurDir()
|
||||
execute 'cd ' . StripSuda(expand('%:p:h'))
|
||||
endfunction
|
||||
|
||||
command CDC execute "cd " . StripSuda(expand('%:p:h'))
|
||||
|
||||
let g:lt_location_list_toggle_map = '<leader>l'
|
||||
let g:lt_quickfix_list_toggle_map = '<leader>L' " unsure if I'm using this
|
||||
|
|
|
@ -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