Removed null-ls and some other stuff

This commit is contained in:
Fabian Schmidt
2023-09-23 14:54:20 +02:00
parent 1d2cd23307
commit fd5401c9d7
3 changed files with 39 additions and 46 deletions

View File

@@ -82,7 +82,17 @@ return {
server = {
capabilities = capabilities,
on_attach = lsp_attach,
standalone = false
standalone = false,
settings = {
["rust-analyzer"] = {
rustfmt = {
extraArgs = { "+nightly" },
},
cargo = {
features = {}
}
}
}
},
dap = {
adapter = require('rust-tools.dap').get_codelldb_adapter(
@@ -144,7 +154,7 @@ return {
mapping = cmp.mapping.preset.insert({
["<C-n>"] = cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Insert },
["<C-p>"] = cmp.mapping.select_prev_item { behavior = cmp.SelectBehavior.Insert },
['<C-b>'] = cmp.mapping(cmp.mapping.scroll_docs( -4), { 'i', 'c' }),
['<C-b>'] = cmp.mapping(cmp.mapping.scroll_docs(-4), { 'i', 'c' }),
['<C-f>'] = cmp.mapping(cmp.mapping.scroll_docs(4), { 'i', 'c' }),
['<C-s>'] = cmp.mapping(cmp.mapping.complete(), { 'i', 'c' }),
['<C-y>'] = cmp.mapping.confirm({
@@ -217,17 +227,4 @@ return {
'windwp/nvim-autopairs',
config = true
},
{
'jose-elias-alvarez/null-ls.nvim',
config = function()
local null_ls = require('null-ls')
local sources = {
null_ls.builtins.formatting.prettierd.with({
filetypes = { "html", "json", "yaml", "markdown" },
-- extra_filetypes = { "toml" }, -- find out how to install plugins / wait for mason to support them
}),
}
null_ls.setup({ sources = sources })
end
}
}