Move to neovim inlay
This commit is contained in:
parent
2ca6de5232
commit
1a01a1dd9c
54
init.lua
54
init.lua
@ -72,7 +72,7 @@ require('packer').startup(function(use)
|
||||
use {
|
||||
'rcarriga/nvim-dap-ui',-- Debug Adapter UI
|
||||
requires = {
|
||||
{'mfussenegger/nvim-dap'},-- Debug Adapter Protocol
|
||||
{'mfussenegger/nvim-dap', 'nvim-neotest/nvim-nio'},-- Debug Adapter Protocol
|
||||
}
|
||||
}
|
||||
-- use 'puremourning/vimspector'
|
||||
@ -106,7 +106,7 @@ require('packer').startup(function(use)
|
||||
|
||||
-- development
|
||||
use {"mrcjkb/rustaceanvim", tag = "4.*" }
|
||||
use "lvimuser/lsp-inlayhints.nvim" -- will be added in version 10 of neovim
|
||||
-- use "lvimuser/lsp-inlayhints.nvim" -- will be added in version 10 of neovim
|
||||
use {'folke/neodev.nvim', -- Additional lua configuration, makes nvim stuff amazing
|
||||
config = function() require('neodev').setup() end
|
||||
}
|
||||
@ -202,6 +202,7 @@ vim.cmd[[colorscheme catppuccin]]
|
||||
|
||||
vim.g.loaded_perl_provider = 0
|
||||
vim.g.loaded_ruby_provider = 0
|
||||
vim.lsp.inlay_hint.enable(true)
|
||||
|
||||
require("lualine").setup({
|
||||
|
||||
@ -565,19 +566,42 @@ require'colorizer'.setup()
|
||||
require("nvim-autopairs").setup {} -- ne semble pas pouvoir être intégré dans le use
|
||||
|
||||
-- inlay hints to remove with version 10 of neovim
|
||||
require("lsp-inlayhints").setup()
|
||||
vim.api.nvim_create_augroup("LspAttach_inlayhints", {})
|
||||
vim.api.nvim_create_autocmd("LspAttach", {
|
||||
group = "LspAttach_inlayhints",
|
||||
callback = function(args)
|
||||
if not (args.data and args.data.client_id) then
|
||||
return
|
||||
end
|
||||
-- require("lsp-inlayhints").setup()
|
||||
-- vim.api.nvim_create_augroup("LspAttach_inlayhints", {})
|
||||
-- vim.api.nvim_create_autocmd("LspAttach", {
|
||||
-- group = "LspAttach_inlayhints",
|
||||
-- callback = function(args)
|
||||
-- if not (args.data and args.data.client_id) then
|
||||
-- return
|
||||
-- end
|
||||
|
||||
local bufnr = args.buf
|
||||
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
||||
require("lsp-inlayhints").on_attach(client, bufnr)
|
||||
end,
|
||||
})
|
||||
-- local bufnr = args.buf
|
||||
-- local client = vim.lsp.get_client_by_id(args.data.client_id)
|
||||
-- require("lsp-inlayhints").on_attach(client, bufnr)
|
||||
-- end,
|
||||
-- })
|
||||
------------------------------------------------
|
||||
--
|
||||
--
|
||||
-- local dap = require("dap")
|
||||
|
||||
-- dap.adapters.lldb = {
|
||||
-- type = "executable",
|
||||
-- -- command = "/usr/bin/lldb-vscode", -- adjust as needed
|
||||
-- command = "$HOME/.cargo/bin/rust-lldb", -- adjust as needed
|
||||
-- name = "lldb",
|
||||
-- }
|
||||
--
|
||||
local dap, dapui = require("dap"), require("dapui")
|
||||
dap.listeners.before.attach.dapui_config = function()
|
||||
dapui.open()
|
||||
end
|
||||
dap.listeners.before.launch.dapui_config = function()
|
||||
dapui.open()
|
||||
end
|
||||
dap.listeners.before.event_terminated.dapui_config = function()
|
||||
dapui.close()
|
||||
end
|
||||
dap.listeners.before.event_exited.dapui_config = function()
|
||||
dapui.close()
|
||||
end
|
||||
|
Reference in New Issue
Block a user