install dadbod and neotree
This commit is contained in:
@@ -48,6 +48,9 @@ return {
|
||||
|
||||
sources = {
|
||||
default = { 'lazydev', 'lsp', 'snippets', 'ripgrep', 'path', 'buffer' },
|
||||
per_filetype = {
|
||||
sql = { 'snippets', 'dadbod', 'buffer', 'ripgrep' }
|
||||
},
|
||||
providers = {
|
||||
lazydev = {
|
||||
name = 'LazyDev',
|
||||
@@ -88,6 +91,9 @@ return {
|
||||
return items
|
||||
end,
|
||||
},
|
||||
dadbod = {
|
||||
name = 'Dadbod', module = 'vim_dadbod_completion.blink'
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
20
lua/crentist/lazy/dadbod.lua
Normal file
20
lua/crentist/lazy/dadbod.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
return {
|
||||
'kristijanhusak/vim-dadbod-ui',
|
||||
dependencies = {
|
||||
{ 'tpope/vim-dadbod', lazy = true },
|
||||
{ 'kristijanhusak/vim-dadbod-completion', ft = { 'sql', 'mysql', 'plsql' }, lazy = true }, -- Optional
|
||||
},
|
||||
cmd = {
|
||||
'DBUI',
|
||||
'DBUIToggle',
|
||||
'DBUIAddConnection',
|
||||
'DBUIFindBuffer',
|
||||
},
|
||||
init = function()
|
||||
-- Your DBUI configuration
|
||||
vim.g.db_ui_use_nerd_fonts = 1
|
||||
vim.g.db_ui_auto_execute_table_helpers = 1
|
||||
vim.g.db_ui_win_position = 'right'
|
||||
end,
|
||||
}
|
||||
|
||||
23
lua/crentist/lazy/neotree.lua
Normal file
23
lua/crentist/lazy/neotree.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
return {
|
||||
{
|
||||
'nvim-neo-tree/neo-tree.nvim',
|
||||
branch = 'v3.x',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'MunifTanjim/nui.nvim',
|
||||
'nvim-tree/nvim-web-devicons', -- optional, but recommended
|
||||
},
|
||||
lazy = false, -- neo-tree will lazily load itself
|
||||
---@module 'neo-tree'
|
||||
---@type neotree.Config
|
||||
opts = {
|
||||
filesystem = {
|
||||
hijack_netrw_behavior = 'disabled',
|
||||
},
|
||||
window = {
|
||||
position = 'current',
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@ vim.g.mapleader = " "
|
||||
vim.keymap.set("n", "<leader>Pv", ":Oil .<CR>")
|
||||
vim.keymap.set("n", "<leader>pv", ":Oil<CR>")
|
||||
|
||||
vim.keymap.set("n", "<leader>pt", ":Neotree .<CR>")
|
||||
|
||||
vim.keymap.set("n", "<C-d>", "<C-d>zz")
|
||||
vim.keymap.set("n", "<C-u>", "<C-u>zz")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user