config(nvim): try to use coq_nvim for completion
parent
6b07c09df1
commit
a758905d29
|
@ -193,6 +193,34 @@ require("lazy").setup({
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- https://github.com/ms-jpq/coq_nvim
|
||||||
|
{
|
||||||
|
"ms-jpq/coq_nvim",
|
||||||
|
branch = "coq",
|
||||||
|
init = function()
|
||||||
|
vim.g.coq_settings = {
|
||||||
|
auto_start = "shut-up",
|
||||||
|
completion = {
|
||||||
|
always = false,
|
||||||
|
},
|
||||||
|
display = {
|
||||||
|
preview = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
-- https://github.com/ms-jpq/coq_nvim/issues/100
|
||||||
|
match = {
|
||||||
|
look_ahead = 1,
|
||||||
|
},
|
||||||
|
clients = {
|
||||||
|
snippets = {
|
||||||
|
warn = {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
-- https://github.com/nvim-tree/nvim-tree.lua
|
-- https://github.com/nvim-tree/nvim-tree.lua
|
||||||
{
|
{
|
||||||
"nvim-tree/nvim-tree.lua",
|
"nvim-tree/nvim-tree.lua",
|
||||||
|
@ -368,31 +396,9 @@ require("lazy").setup({
|
||||||
{
|
{
|
||||||
"echasnovski/mini.nvim",
|
"echasnovski/mini.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
-- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-bracketed.md
|
|
||||||
require("mini.bracketed").setup({
|
|
||||||
comment = { suffix = "", options = {} },
|
|
||||||
file = { suffix = "", options = {} },
|
|
||||||
indent = { suffix = "", options = {} },
|
|
||||||
jump = { suffix = "", options = {} },
|
|
||||||
location = { suffix = "", options = {} },
|
|
||||||
oldfile = { suffix = "", options = {} },
|
|
||||||
treesitter = { suffix = "", options = {} },
|
|
||||||
undo = { suffix = "", options = {} },
|
|
||||||
window = { suffix = "", options = {} },
|
|
||||||
yank = { suffix = "", options = {} },
|
|
||||||
})
|
|
||||||
|
|
||||||
-- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-comment.md
|
-- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-comment.md
|
||||||
require("mini.comment").setup()
|
require("mini.comment").setup()
|
||||||
|
|
||||||
-- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-completion.md
|
|
||||||
require("mini.completion").setup({
|
|
||||||
mappings = {
|
|
||||||
force_twostep = "<C-Space>",
|
|
||||||
force_fallback = "",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-cursorword.md
|
-- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-cursorword.md
|
||||||
require("mini.cursorword").setup()
|
require("mini.cursorword").setup()
|
||||||
|
|
||||||
|
@ -452,20 +458,24 @@ require("lazy").setup({
|
||||||
-- https://github.com/neovim/nvim-lspconfig
|
-- https://github.com/neovim/nvim-lspconfig
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
|
dependencies = {
|
||||||
|
"ms-jpq/coq_nvim",
|
||||||
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
|
local coq = require("coq")
|
||||||
|
|
||||||
-- Go
|
-- Go
|
||||||
-- https://github.com/golang/tools/blob/master/gopls/doc/vim.md
|
-- https://github.com/golang/tools/blob/master/gopls/doc/vim.md
|
||||||
-- https://github.com/golang/tools/blob/master/gopls/doc/settings.md
|
-- https://github.com/golang/tools/blob/master/gopls/doc/settings.md
|
||||||
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#gopls
|
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#gopls
|
||||||
lspconfig.gopls.setup({
|
lspconfig.gopls.setup(coq.lsp_ensure_capabilities({
|
||||||
settings = {
|
settings = {
|
||||||
gopls = {
|
gopls = {
|
||||||
usePlaceholders = true,
|
usePlaceholders = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
}))
|
||||||
|
|
||||||
-- Python
|
-- Python
|
||||||
-- https://github.com/Microsoft/pyright
|
-- https://github.com/Microsoft/pyright
|
||||||
|
|
Loading…
Reference in New Issue