Skip to content

Commit

Permalink
Remove duplicated diagnostic sign definition (LSP)
Browse files Browse the repository at this point in the history
  • Loading branch information
mraxime authored and mehalter committed Apr 10, 2022
1 parent 187c756 commit fe61000
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lua/configs/filetype.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local M = {}

function M.config()
local present, better_escape = pcall(require, "filetype")
local present, filetype = pcall(require, "filetype")
if not present then
return
end
Expand All @@ -10,7 +10,7 @@ function M.config()
vim.g.did_load_filetypes = 1
end

better_escape.setup(require("core.utils").user_plugin_opts("plugins.filetype", {}))
filetype.setup(require("core.utils").user_plugin_opts("plugins.filetype", {}))
end

return M
4 changes: 0 additions & 4 deletions lua/configs/neo-tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ function M.config()
end

vim.g.neo_tree_legacy_commands = 1
vim.fn.sign_define("DiagnosticSignError", { text = "", texthl = "DiagnosticSignError" })
vim.fn.sign_define("DiagnosticSignWarn", { text = "", texthl = "DiagnosticSignWarn" })
vim.fn.sign_define("DiagnosticSignInfo", { text = "", texthl = "DiagnosticSignInfo" })
vim.fn.sign_define("DiagnosticSignHint", { text = "", texthl = "DiagnosticSignHint" })

neotree.setup(require("core.utils").user_plugin_opts("plugins.neo-tree", {
close_if_last_window = true,
Expand Down

0 comments on commit fe61000

Please sign in to comment.