keep some gitsigns mappings only | rm 0.7v related stuff
This commit is contained in:
parent
b142f4c99d
commit
00be26275e
4 changed files with 14 additions and 99 deletions
lua/plugins
|
@ -13,15 +13,8 @@ local utils = require "core.utils"
|
|||
-- export on_attach & capabilities for custom lspconfigs
|
||||
|
||||
M.on_attach = function(client, bufnr)
|
||||
if vim.g.vim_version > 7 then
|
||||
-- nightly
|
||||
client.server_capabilities.documentFormattingProvider = false
|
||||
client.server_capabilities.documentRangeFormattingProvider = false
|
||||
else
|
||||
-- stable
|
||||
client.resolved_capabilities.document_formatting = false
|
||||
client.resolved_capabilities.document_range_formatting = false
|
||||
end
|
||||
client.server_capabilities.documentFormattingProvider = false
|
||||
client.server_capabilities.documentRangeFormattingProvider = false
|
||||
|
||||
utils.load_mappings("lspconfig", { buffer = bufnr })
|
||||
|
||||
|
|
|
@ -217,9 +217,7 @@ if present then
|
|||
-- load packer init options
|
||||
local init_options = require("plugins.configs.others").packer_init()
|
||||
init_options = require("core.utils").load_override(init_options, "wbthomason/packer.nvim")
|
||||
packer.init(init_options)
|
||||
|
||||
for _, v in pairs(plugins) do
|
||||
packer.use(v)
|
||||
end
|
||||
packer.init(init_options)
|
||||
packer.startup { plugins }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue