chore: added cmp source plugins
This commit is contained in:
parent
f914dc5a14
commit
5a8d4c2b03
3 changed files with 54 additions and 70 deletions
|
@ -2,7 +2,6 @@
|
||||||
vim.wo.number=true
|
vim.wo.number=true
|
||||||
vim.wo.relativenumber= true
|
vim.wo.relativenumber= true
|
||||||
vim.g.instant_username = "Afonso"
|
vim.g.instant_username = "Afonso"
|
||||||
vim.opt.clipboard= 'unnamedplus'
|
|
||||||
vim.opt.hlsearch = false
|
vim.opt.hlsearch = false
|
||||||
vim.opt.smartindent = true
|
vim.opt.smartindent = true
|
||||||
vim.opt.wrap = false
|
vim.opt.wrap = false
|
||||||
|
|
|
@ -37,51 +37,46 @@ local on_attach = function(client, bufnr)
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
--local lsp = require "lspconfig"
|
local lsp = require "lspconfig"
|
||||||
--local coq = require "coq"
|
|
||||||
--
|
lsp['hls'].setup{
|
||||||
--lsp['hls'].setup{
|
on_attach = on_attach,
|
||||||
-- on_attach = on_attach,
|
flags = lsp_flags,
|
||||||
-- flags = lsp_flags,
|
}
|
||||||
--}
|
|
||||||
--
|
lsp['rust_analyzer'].setup{
|
||||||
--lsp['rust_analyzer'].setup{}
|
|
||||||
--
|
on_attach = on_attach,
|
||||||
--lsp.rust_analyzer.setup(
|
flags = lsp_flags,
|
||||||
-- coq.lsp_ensure_capabilities{
|
-- Server-specific settings...
|
||||||
-- on_attach = on_attach,
|
settings = {
|
||||||
-- flags = lsp_flags,
|
["rust-analyzer"] = {}
|
||||||
-- -- Server-specific settings...
|
}
|
||||||
-- settings = {
|
}
|
||||||
-- ["rust-analyzer"] = {}
|
lsp['texlab'].setup{
|
||||||
-- }
|
on_attach = on_attach,
|
||||||
-- }
|
flags = lsp_flags,
|
||||||
--)
|
}
|
||||||
--
|
lsp['sumneko_lua'].setup{
|
||||||
--lsp['texlab'].setup{
|
|
||||||
-- on_attach = on_attach,
|
settings = {
|
||||||
-- flags = lsp_flags,
|
Lua = {
|
||||||
--}
|
runtime = {
|
||||||
--lsp['sumneko_lua'].setup{
|
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
|
||||||
--
|
version = 'LuaJIT',
|
||||||
-- settings = {
|
},
|
||||||
-- Lua = {
|
diagnostics = {
|
||||||
-- runtime = {
|
-- Get the language server to recognize the `vim` global
|
||||||
-- -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
|
globals = {'vim'},
|
||||||
-- version = 'LuaJIT',
|
},
|
||||||
-- },
|
workspace = {
|
||||||
-- diagnostics = {
|
-- Make the server aware of Neovim runtime files
|
||||||
-- -- Get the language server to recognize the `vim` global
|
library = vim.api.nvim_get_runtime_file("", true),
|
||||||
-- globals = {'vim'},
|
},
|
||||||
-- },
|
-- Do not send telemetry data containing a randomized but unique identifier
|
||||||
-- workspace = {
|
telemetry = {
|
||||||
-- -- Make the server aware of Neovim runtime files
|
enable = false,
|
||||||
-- library = vim.api.nvim_get_runtime_file("", true),
|
},
|
||||||
-- },
|
},
|
||||||
-- -- Do not send telemetry data containing a randomized but unique identifier
|
},
|
||||||
-- telemetry = {
|
}
|
||||||
-- enable = false,
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
--}
|
|
||||||
|
|
|
@ -57,29 +57,19 @@ local plugins = packer.startup({function(use)
|
||||||
"saadparwaiz1/cmp_luasnip"
|
"saadparwaiz1/cmp_luasnip"
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
--------------------------------------------------SUGGESTION BOX-----------------------------------------
|
||||||
use {"ms-jpq/coq.artifacts",
|
use { "hrsh7th/nvim-cmp",
|
||||||
branch = 'artifacts',
|
requires = {
|
||||||
}
|
'hrsh7th/cmp-nvim-lsp', -- lsp
|
||||||
|
'hrsh7th/cmp-buffer', --buffer completions
|
||||||
use {'stevearc/dressing.nvim'} -- Rename variable pop up
|
'hrsh7th/cmp-path', --path completions
|
||||||
|
'hrsh7th/cmp-cmdline' --cmdline completions
|
||||||
use {"windwp/nvim-autopairs",
|
},
|
||||||
config = function() require("nvim-autopairs").setup {} end
|
config = function()
|
||||||
}
|
require "plugins.cmp"
|
||||||
|
|
||||||
|
|
||||||
---- use { "L3MON4D3/LuaSnip",
|
|
||||||
-- requires = {
|
|
||||||
-- "rafamadriz/friendly-snippets",
|
|
||||||
---- "saadparwaiz1/cmp_luasnip"
|
|
||||||
-- },
|
|
||||||
-- }
|
|
||||||
use { "williamboman/mason.nvim",
|
|
||||||
config = function ()
|
|
||||||
require "plugins.mason"
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
--- use {"ms-jpq/coq_nvim",
|
--- use {"ms-jpq/coq_nvim",
|
||||||
--- branch = 'coq',
|
--- branch = 'coq',
|
||||||
--- config = function ()
|
--- config = function ()
|
||||||
|
|
Loading…
Add table
Reference in a new issue