fixed code actions
This commit is contained in:
parent
c2117327a7
commit
2c1f23a806
|
|
@ -28,7 +28,6 @@
|
|||
"null-ls.nvim": { "branch": "main", "commit": "0010ea927ab7c09ef0ce9bf28c2b573fc302f5a7" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "c6139ca0d5ad7af129ea6c89cb4c56093f2c034a" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
|
||||
"nvim-code-action-menu": { "branch": "main", "commit": "8c7672a4b04d3cc4edd2c484d05b660a9cb34a1b" },
|
||||
"nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" },
|
||||
"nvim-dap": { "branch": "master", "commit": "fc880e82059eb21c0fa896be60146e5f17680648" },
|
||||
"nvim-dap-ui": { "branch": "master", "commit": "9720eb5fa2f41988e8770f973cd11b76dd568a5d" },
|
||||
|
|
@ -48,6 +47,7 @@
|
|||
"popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" },
|
||||
"presence.nvim": { "branch": "main", "commit": "87c857a56b7703f976d3a5ef15967d80508df6e6" },
|
||||
"statuscol.nvim": { "branch": "main", "commit": "d954893262a57a92e46edd87de67e2b3fe72305e" },
|
||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "7472420f8734c710bd7009081cef9b97f08a3821" },
|
||||
"template-string.nvim": { "branch": "main", "commit": "419bfb2e4d5f0e6ddd0d4435f85b69da0d88d524" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "833d8dd8b07eeda37a09e99460f72a02616935cb" },
|
||||
|
|
|
|||
|
|
@ -79,18 +79,30 @@ require("lazy").setup(
|
|||
"OmniSharp/omnisharp-vim"
|
||||
}
|
||||
},
|
||||
{
|
||||
"weilbith/nvim-code-action-menu",
|
||||
cmd = "CodeActionMenu"
|
||||
},
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
config = function()
|
||||
require("telescope").setup {
|
||||
file_ignore_patterns = {"package-lock.json"}
|
||||
local dropdown_configs = {
|
||||
layout_config = {
|
||||
prompt_position = "top",
|
||||
vertical = {
|
||||
width = 80,
|
||||
height = 12
|
||||
}
|
||||
},
|
||||
border = {}
|
||||
}
|
||||
require("telescope").setup {
|
||||
file_ignore_patterns = {"package-lock.json"},
|
||||
extensions = {
|
||||
["ui-select"] = {
|
||||
require("telescope.themes").get_dropdown(dropdown_configs)
|
||||
}
|
||||
}
|
||||
}
|
||||
require("telescope").load_extension("ui-select")
|
||||
end,
|
||||
dependencies = {"nvim-lua/popup.nvim", "nvim-lua/plenary.nvim"}
|
||||
dependencies = {"nvim-lua/popup.nvim", "nvim-lua/plenary.nvim", "nvim-telescope/telescope-ui-select.nvim"}
|
||||
},
|
||||
{
|
||||
"norcalli/nvim-colorizer.lua",
|
||||
|
|
|
|||
|
|
@ -60,11 +60,11 @@ require "lspconfig".yamlls.setup {
|
|||
local nvim_lsp = require("lspconfig")
|
||||
|
||||
local function codeAction()
|
||||
if vim.bo.filetype == "cs" then
|
||||
vim.lsp.buf.code_action()
|
||||
else
|
||||
vim.cmd [[CodeActionMenu]]
|
||||
end
|
||||
-- if vim.bo.filetype == "cs" then
|
||||
vim.lsp.buf.code_action()
|
||||
-- else
|
||||
-- vim.cmd [[CodeActionMenu]]
|
||||
-- end
|
||||
end
|
||||
|
||||
-- Mappings.
|
||||
|
|
|
|||
Loading…
Reference in New Issue