Remove dead sqls
This commit is contained in:
parent
2b44b16f68
commit
9928b63d6b
@ -373,7 +373,6 @@ return require('packer').startup(function(use)
|
|||||||
require('plugins.lualine-nvim')
|
require('plugins.lualine-nvim')
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
use 'nanotee/sqls.nvim'
|
|
||||||
use 'tpope/vim-unimpaired'
|
use 'tpope/vim-unimpaired'
|
||||||
use 'tpope/vim-repeat'
|
use 'tpope/vim-repeat'
|
||||||
use 'tpope/vim-eunuch'
|
use 'tpope/vim-eunuch'
|
||||||
|
@ -77,10 +77,10 @@ require('lspconfig')['marksman'].setup({
|
|||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
flags = lsp_flags,
|
flags = lsp_flags,
|
||||||
})
|
})
|
||||||
require('lspconfig')['sqls'].setup({
|
require('lspconfig')['sqlls'].setup({
|
||||||
on_attach = function(client, bufn)
|
on_attach = function(client, bufn)
|
||||||
on_attach(client, bufn)
|
on_attach(client, bufn)
|
||||||
require('sqls').on_attach(client, bufn)
|
require('sqlls').on_attach(client, bufn)
|
||||||
end,
|
end,
|
||||||
flags = lsp_flags,
|
flags = lsp_flags,
|
||||||
})
|
})
|
||||||
|
@ -33,9 +33,10 @@ else
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- this is needed here since it doesn't work in plugins/sqls.lua for some reason
|
-- this is needed here since it doesn't work in plugins/sqls.lua for some reason
|
||||||
vim.keymap.set('n', '<leader>s', [[<CMD>SqlsExecuteQuery<CR>]], { noremap = false, silent = true, desc = "[S]qls execute query under cursor" })
|
-- sqls is dead now apparently :(
|
||||||
vim.keymap.set('n', '<leader>S', [[<CMD>SqlsExecuteQueryVertical<CR>]], { noremap = false, silent = true, desc = "[S]qls execute query under cursor in vertical split" })
|
-- vim.keymap.set('n', '<leader>s', [[<CMD>SqlsExecuteQuery<CR>]], { noremap = false, silent = true, desc = "[S]qls execute query under cursor" })
|
||||||
vim.keymap.set('x', '<leader>s', [[<Plug>(sqls-execute-query)<CR>]], { noremap = false, silent = true, desc = "[S]qls execute selected query" })
|
-- vim.keymap.set('n', '<leader>S', [[<CMD>SqlsExecuteQueryVertical<CR>]], { noremap = false, silent = true, desc = "[S]qls execute query under cursor in vertical split" })
|
||||||
vim.keymap.set('x', '<leader>S', [[<Plug>(sqls-execute-query-vertical)<CR>]], { noremap = false, silent = true, desc = "[S]qls execute selected query in vertical split" })
|
-- vim.keymap.set('x', '<leader>s', [[<Plug>(sqls-execute-query)<CR>]], { noremap = false, silent = true, desc = "[S]qls execute selected query" })
|
||||||
|
-- vim.keymap.set('x', '<leader>S', [[<Plug>(sqls-execute-query-vertical)<CR>]], { noremap = false, silent = true, desc = "[S]qls execute selected query in vertical split" })
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>bo", "<cmd>%bd|e#<cr>", { desc = "Close all buffers but the current one" }) -- https://stackoverflow.com/a/42071865/516188
|
vim.keymap.set("n", "<leader>bo", "<cmd>%bd|e#<cr>", { desc = "Close all buffers but the current one" }) -- https://stackoverflow.com/a/42071865/516188
|
||||||
|
Loading…
Reference in New Issue
Block a user