migrate nvim config to 0.12.0: vim.pack, ui2, snacks -> mini, just general spring cleaning
This commit is contained in:
parent
d1178fbe59
commit
14b1a9b057
70 changed files with 1081 additions and 1483 deletions
|
|
@ -63,9 +63,12 @@ return {
|
|||
-- ts_ls provides `source.*` code actions that apply to the whole file. These only appear in
|
||||
-- `vim.lsp.buf.code_action()` if specified in `context.only`.
|
||||
vim.api.nvim_buf_create_user_command(bufnr, "LspTypescriptSourceAction", function()
|
||||
local kinds = vim.tbl_get(client.server_capabilities, "codeActionProvider", "codeActionKinds")
|
||||
if not kinds then return end
|
||||
|
||||
local source_actions = vim.tbl_filter(function(action)
|
||||
return vim.startswith(action, "source.")
|
||||
end, client.server_capabilities.codeActionProvider.codeActionKinds)
|
||||
end, kinds)
|
||||
|
||||
vim.lsp.buf.code_action({
|
||||
context = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue