[feat] Add carapace completer

This commit is contained in:
Uttarayan
2024-02-14 01:48:29 +05:30
parent a801cd1cc4
commit c312bee907
8 changed files with 102 additions and 106 deletions

View File

@@ -97,11 +97,18 @@ return require('lazy').setup({
load = {
["core.defaults"] = {}, -- Loads default behaviour
["core.concealer"] = {}, -- Adds pretty icons to your documents
["core.dirman"] = { -- Manages Neorg workspaces
["core.completion"] = {
config = {
engine = "nvim-cmp",
}
},
["core.dirman"] = { -- Manages Neorg workspaces
config = {
workspaces = {
notes = "~/Documents/norg",
},
default_workspace = "general",
index = "index.norg"
},
},
},
@@ -470,6 +477,47 @@ return require('lazy').setup({
dependencies = { "mfussenegger/nvim-dap" },
config = function() require("dapui").setup() end
},
{
"mfussenegger/nvim-dap",
-- event = "LspAttach",
config = function()
local dap = require('dap')
local registry = require('mason-registry').get_package("codelldb");
local codelldb = registry:get_install_path() .. "/codelldb"
dap.adapters.codelldb = {
type = 'server',
port = "${port}",
executable = {
-- CHANGE THIS to your path!
command = codelldb,
args = { "--port", "${port}" },
-- On windows you may have to uncomment this:
-- detached = false,
}
}
local program = function()
return vim.ui.select({
}, {
prompt = "Select program to debug: ",
format_item = function(item)
return item
end,
})
end
dap.configurations.rust = {
{
name = "Launch Rust (CODELLDB)",
type = "codelldb",
request = "launch",
program = program,
cwd = '${workspaceFolder}',
stopOnEntry = false,
},
}
end
},
-- {
-- 'phaazon/hop.nvim',
-- branch = 'v2', -- optional but strongly recommended

View File

@@ -2,8 +2,8 @@
-- local extension_path = vim.env.HOME .. '/.vscode/extensions/vadimcn.vscode-lldb-1.7.0'
-- local codelldb_path = extension_path .. 'adapter/codelldb'
-- local liblldb_path = extension_path .. 'lldb/lib/liblldb.dylib'
local codelldb_path = '/Users/fs0c131y/.vscode-oss/extensions/vadimcn.vscode-lldb-1.8.1-universal/adapter/codelldb'
local liblldb_path = '/Users/fs0c131y/.vscode-oss/extensions/vadimcn.vscode-lldb-1.8.1-universal/lldb/lib/liblldb.dylib'
-- local codelldb_path = '/Users/fs0c131y/.vscode-oss/extensions/vadimcn.vscode-lldb-1.8.1-universal/adapter/codelldb'
-- local liblldb_path = '/Users/fs0c131y/.vscode-oss/extensions/vadimcn.vscode-lldb-1.8.1-universal/lldb/lib/liblldb.dylib'
local lspstatus = require('lsp-status')
-- local lsp_signature = require('lsp_signature')
@@ -62,6 +62,8 @@ vim.g.rustaceanvim = {
-- },
-- },
-- -- DAP configuration
-- dap = {},
},
dap = {
autoload_configurations = false
},
}