mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-31 07:09:23 +02:00
Database support (#197)
This commit is contained in:
parent
c81abf2262
commit
3bc4bb6103
5 changed files with 15 additions and 1 deletions
1
init.lua
1
init.lua
|
@ -36,6 +36,7 @@ require('nv-nvim-dap')
|
||||||
require('nv-lightbulb')
|
require('nv-lightbulb')
|
||||||
require('nv-indentline')
|
require('nv-indentline')
|
||||||
require('nv-bookmark')
|
require('nv-bookmark')
|
||||||
|
require('nv-dadbod')
|
||||||
-- require('nv-lspinstall')
|
-- require('nv-lspinstall')
|
||||||
|
|
||||||
-- Which Key (Hope to replace with Lua plugin someday)
|
-- Which Key (Hope to replace with Lua plugin someday)
|
||||||
|
|
|
@ -24,6 +24,7 @@ require'compe'.setup {
|
||||||
nvim_lua = false,
|
nvim_lua = false,
|
||||||
spell = {kind = " "},
|
spell = {kind = " "},
|
||||||
tags = false,
|
tags = false,
|
||||||
|
vim_dadbod_completion = true,
|
||||||
-- snippets_nvim = {kind = " "},
|
-- snippets_nvim = {kind = " "},
|
||||||
-- ultisnips = {kind = " "},
|
-- ultisnips = {kind = " "},
|
||||||
-- treesitter = {kind = " "},
|
-- treesitter = {kind = " "},
|
||||||
|
|
6
lua/nv-dadbod/init.lua
Normal file
6
lua/nv-dadbod/init.lua
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
vim.api.nvim_set_keymap("n", "<leader>Du", ":DBUIToggle<CR>", {noremap=true, silent = true})
|
||||||
|
vim.api.nvim_set_keymap("n", "<leader>Df", ":DBUIFindBuffer<CR>", {noremap=true, silent = true})
|
||||||
|
vim.api.nvim_set_keymap("n", "<leader>Dr", ":DBUIRenameBuffer<CR>", {noremap=true, silent = true})
|
||||||
|
vim.api.nvim_set_keymap("n", "<leader>Dl", ":DBUILastQueryInfo<CR>", {noremap=true, silent = true})
|
||||||
|
vim.g.db_ui_save_location = O.db_ui_save_location
|
||||||
|
vim.g.db_ui_auto_execute_table_helpers = 1
|
|
@ -3,7 +3,8 @@ O = {
|
||||||
auto_complete = true,
|
auto_complete = true,
|
||||||
colorscheme = 'nvcode',
|
colorscheme = 'nvcode',
|
||||||
relative_number = true,
|
relative_number = true,
|
||||||
shell = "bash",
|
shell = 'bash',
|
||||||
|
db_ui_save_location = '~/.config/nvcode_db',
|
||||||
python = {
|
python = {
|
||||||
linter = '',
|
linter = '',
|
||||||
-- @usage can be 'yapf', 'black'
|
-- @usage can be 'yapf', 'black'
|
||||||
|
|
|
@ -113,6 +113,11 @@ return require('packer').startup(function(use)
|
||||||
use 'MattesGroeger/vim-bookmarks'
|
use 'MattesGroeger/vim-bookmarks'
|
||||||
use 'windwp/nvim-autopairs'
|
use 'windwp/nvim-autopairs'
|
||||||
|
|
||||||
|
-- Database
|
||||||
|
use 'tpope/vim-dadbod'
|
||||||
|
use 'kristijanhusak/vim-dadbod-ui'
|
||||||
|
use 'kristijanhusak/vim-dadbod-completion'
|
||||||
|
|
||||||
-- TODO put this back when stable for indent lines
|
-- TODO put this back when stable for indent lines
|
||||||
-- vim.g.indent_blankline_space_char = ''
|
-- vim.g.indent_blankline_space_char = ''
|
||||||
-- use 'b3nj5m1n/kommentary'
|
-- use 'b3nj5m1n/kommentary'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue