[feat] Fix nvim config mostly

This commit is contained in:
Uttarayan
2024-02-22 01:45:37 +05:30
parent 3622d00200
commit ed82e4eec4
7 changed files with 87 additions and 254 deletions

View File

@@ -161,6 +161,7 @@ return require('lazy').setup({
{ 'hrsh7th/cmp-path', lazy = false },
{ 'hrsh7th/cmp-cmdline', lazy = false },
{ 'L3MON4D3/LuaSnip' },
{ "nvim-treesitter/nvim-treesitter", lazy = false },
{ 'saadparwaiz1/cmp_luasnip' },
{
"zbirenbaum/copilot-cmp",
@@ -264,14 +265,14 @@ return require('lazy').setup({
-- event = "LspAttach",
config = function()
local dap = require('dap')
local registry = require('mason-registry').get_package("codelldb");
local codelldb = registry:get_install_path() .. "/codelldb"
-- 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,
command = "codelldb",
args = { "--port", "${port}" },
-- On windows you may have to uncomment this:

View File

@@ -38,7 +38,7 @@ vim.g.rustaceanvim = {
-- tools = {},
-- LSP configuration
server = {
capabilities = require'lsp_zero'.get_capabilities(),
capabilities = require'lsp-zero'.get_capabilities(),
on_attach = function(client, bufnr)
-- you can also put keymaps in here
lspstatus.on_attach(client, bufnr)