[feat] Push changes before lazy.nvim migration
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
local vim = vim
|
local vim = vim
|
||||||
local execute = vim.api.nvim_command
|
local execute = vim.api.nvim_command
|
||||||
local fn = vim.fn
|
local fn = vim.fn
|
||||||
local use = require('packer').use
|
|
||||||
|
|
||||||
local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
|
local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
|
||||||
|
|
||||||
if fn.empty(fn.glob(install_path)) > 0 then
|
if fn.empty(fn.glob(install_path)) > 0 then
|
||||||
@@ -10,6 +8,7 @@ if fn.empty(fn.glob(install_path)) > 0 then
|
|||||||
execute 'packadd packer.nvim'
|
execute 'packadd packer.nvim'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local use = require('packer').use
|
||||||
|
|
||||||
return require('packer').startup(function()
|
return require('packer').startup(function()
|
||||||
-- Packer can manage itself
|
-- Packer can manage itself
|
||||||
@@ -79,6 +78,7 @@ return require('packer').startup(function()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
use {
|
use {
|
||||||
'tpope/vim-commentary',
|
'tpope/vim-commentary',
|
||||||
'tpope/vim-fugitive',
|
'tpope/vim-fugitive',
|
||||||
@@ -133,7 +133,7 @@ return require('packer').startup(function()
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
use 'airblade/vim-rooter'
|
-- use 'airblade/vim-rooter'
|
||||||
-- use({
|
-- use({
|
||||||
-- "https://git.sr.ht/~whynothugo/lsp_lines.nvim",
|
-- "https://git.sr.ht/~whynothugo/lsp_lines.nvim",
|
||||||
-- config = function()
|
-- config = function()
|
||||||
|
|||||||
@@ -180,7 +180,6 @@ local opts = {
|
|||||||
-- standalone file support
|
-- standalone file support
|
||||||
-- setting it to false may improve startup time
|
-- setting it to false may improve startup time
|
||||||
standalone = true,
|
standalone = true,
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
["rust-analyzer"] = {
|
["rust-analyzer"] = {
|
||||||
imports = {
|
imports = {
|
||||||
@@ -190,6 +189,17 @@ local opts = {
|
|||||||
group = "module",
|
group = "module",
|
||||||
},
|
},
|
||||||
importPrefix = "self",
|
importPrefix = "self",
|
||||||
|
prefer = {
|
||||||
|
no = {
|
||||||
|
std = false
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
-- inlayHints.closureReturnTypeHints.enable
|
||||||
|
inlayHints = {
|
||||||
|
closureReturnTypeHints = {
|
||||||
|
enable = true,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
cargo = {
|
cargo = {
|
||||||
loadOutDirsFromCheck = true,
|
loadOutDirsFromCheck = true,
|
||||||
@@ -197,6 +207,11 @@ local opts = {
|
|||||||
procMacro = {
|
procMacro = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
|
completion = {
|
||||||
|
autoimport = {
|
||||||
|
enalbe = true,
|
||||||
|
}
|
||||||
|
},
|
||||||
checkOnSave = {
|
checkOnSave = {
|
||||||
command = "clippy",
|
command = "clippy",
|
||||||
},
|
},
|
||||||
@@ -208,7 +223,6 @@ local opts = {
|
|||||||
vim.keymap.set("n", "<S-K>", rt.hover_actions.hover_actions, { buffer = bufnr })
|
vim.keymap.set("n", "<S-K>", rt.hover_actions.hover_actions, { buffer = bufnr })
|
||||||
-- Code action groups
|
-- Code action groups
|
||||||
vim.keymap.set("n", "<Leader>a", rt.code_action_group.code_action_group, { buffer = bufnr })
|
vim.keymap.set("n", "<Leader>a", rt.code_action_group.code_action_group, { buffer = bufnr })
|
||||||
|
|
||||||
lspstatus.on_attach(client)
|
lspstatus.on_attach(client)
|
||||||
end,
|
end,
|
||||||
capabilities = coq.lsp_ensure_capabilities(lspstatus.capabilities),
|
capabilities = coq.lsp_ensure_capabilities(lspstatus.capabilities),
|
||||||
|
|||||||
Reference in New Issue
Block a user