mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
feat(nvim): LSP, completion, linting, formatting for Dotnet, JSON,
markdown, SQL
This commit is contained in:
@@ -12,8 +12,20 @@ return {
|
||||
{ "kristijanhusak/vim-dadbod-completion" },
|
||||
},
|
||||
config = function()
|
||||
vim.g.db_ui_save_location = vim.fn.stdpath("config") .. require("plenary.path").path.sep .. "db_ui"
|
||||
vim.g.db_ui_use_nerd_fonts = 1
|
||||
local data_path = vim.fn.stdpath("data")
|
||||
|
||||
vim.g.db_ui_auto_execute_table_helpers = 1
|
||||
vim.g.db_ui_save_location = data_path .. "/db_ui"
|
||||
vim.g.db_ui_show_database_icon = true
|
||||
vim.g.db_ui_tmp_query_location = data_path .. "/db_ui/tmp"
|
||||
vim.g.db_ui_use_nerd_fonts = true
|
||||
vim.g.db_ui_use_nvim_notify = true
|
||||
|
||||
-- NOTE: The default behavior of auto-execution of queries on save is disabled
|
||||
-- this is useful when you have a big query that you don't want to run every time
|
||||
-- you save the file running those queries can crash neovim to run use the
|
||||
-- default keymap: <leader>S
|
||||
vim.g.db_ui_execute_on_save = false
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = {
|
||||
@@ -35,9 +47,16 @@ return {
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>qq", desc = "DB: UI" },
|
||||
{ "<leader>qq", "<cmd>DBUIToggle<cr>", desc = "DB: UI Toggle" },
|
||||
{ "<leader>qq", "<cmd>DBUIToggle<cr>", desc = "DB: UI Toggle" },
|
||||
{ "<leader>qa", "<cmd>DBUIAddConnection<cr>", desc = "DB: Add Connection" },
|
||||
{ "<leader>qf", "<cmd>DBUIFindBuffer<cr>", desc = "DB: Find Connection" },
|
||||
{ "<leader>qf", "<cmd>DBUIFindBuffer<cr>", desc = "DB: Find Connection" },
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"kristijanhusak/vim-dadbod-ui",
|
||||
cmd = { "DBUI", "DBUIToggle", "DBUIAddConnection", "DBUIFindBuffer" },
|
||||
dependencies = "vim-dadbod",
|
||||
init = function() end,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user