mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-11-05 23:29:27 +01:00
add coc config
This commit is contained in:
parent
4f84b6013b
commit
3e5e1ee306
2 changed files with 23 additions and 7 deletions
12
nvim/lua/pluginconf/coc.lua
Normal file
12
nvim/lua/pluginconf/coc.lua
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
vim.g.coc_global_extensions = {
|
||||||
|
"coc-snippets",
|
||||||
|
"coc-lua",
|
||||||
|
"coc-toml",
|
||||||
|
"coc-rust-analyzer",
|
||||||
|
"coc-json",
|
||||||
|
"coc-java",
|
||||||
|
"coc-haxe",
|
||||||
|
"coc-go",
|
||||||
|
"coc-fish",
|
||||||
|
"coc-clangd"
|
||||||
|
}
|
|
@ -1,9 +1,17 @@
|
||||||
vim.cmd [[packadd packer.nvim]]
|
vim.cmd [[packadd packer.nvim]]
|
||||||
|
|
||||||
|
local function pconf(plugin)
|
||||||
|
return "require(\"pluginconf." .. plugin .. "\")"
|
||||||
|
end
|
||||||
|
|
||||||
return require("packer").startup(function(use)
|
return require("packer").startup(function(use)
|
||||||
use "wbthomason/packer.nvim"
|
use "wbthomason/packer.nvim"
|
||||||
|
|
||||||
use {"neoclide/coc.nvim", branch = "release"}
|
use {
|
||||||
|
"neoclide/coc.nvim",
|
||||||
|
branch = "release",
|
||||||
|
config = pconf("coc")
|
||||||
|
}
|
||||||
use "scrooloose/nerdtree"
|
use "scrooloose/nerdtree"
|
||||||
use "Xuyuanp/nerdtree-git-plugin"
|
use "Xuyuanp/nerdtree-git-plugin"
|
||||||
use "tiagofumo/vim-nerdtree-syntax-highlight"
|
use "tiagofumo/vim-nerdtree-syntax-highlight"
|
||||||
|
@ -17,9 +25,7 @@ return require("packer").startup(function(use)
|
||||||
use {
|
use {
|
||||||
"glacambre/firenvim",
|
"glacambre/firenvim",
|
||||||
run = function() vim.fn["firenvim#install"](0) end,
|
run = function() vim.fn["firenvim#install"](0) end,
|
||||||
config = function()
|
config = pconf("firenvim")
|
||||||
require("pluginconf.firenvim")
|
|
||||||
end
|
|
||||||
}
|
}
|
||||||
use "jreybert/vimagit"
|
use "jreybert/vimagit"
|
||||||
use "airblade/vim-gitgutter"
|
use "airblade/vim-gitgutter"
|
||||||
|
@ -30,9 +36,7 @@ return require("packer").startup(function(use)
|
||||||
use {
|
use {
|
||||||
"glepnir/galaxyline.nvim",
|
"glepnir/galaxyline.nvim",
|
||||||
branch = "main",
|
branch = "main",
|
||||||
config = function()
|
config = pconf("galaxyline")
|
||||||
require("pluginconf.galaxyline")
|
|
||||||
end
|
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue