This commit is contained in:
asep komarudin 2023-04-07 09:36:47 +07:00
parent d7d3a38936
commit 33237c167e
3 changed files with 20 additions and 21 deletions

View file

@ -20,11 +20,10 @@
"jaq-nvim": { "branch": "master", "commit": "236296aae555657487d1bb4d066cbde9d79d8cd4" }, "jaq-nvim": { "branch": "master", "commit": "236296aae555657487d1bb4d066cbde9d79d8cd4" },
"lazy.nvim": { "branch": "main", "commit": "57cce98dfdb2f2dd05a0567d89811e6d0505e13b" }, "lazy.nvim": { "branch": "main", "commit": "57cce98dfdb2f2dd05a0567d89811e6d0505e13b" },
"live-server": { "branch": "main", "commit": "ecd7c1418823b65dd2bca710587c80afe42c973e" }, "live-server": { "branch": "main", "commit": "ecd7c1418823b65dd2bca710587c80afe42c973e" },
"lsp_lines.nvim": { "branch": "main", "commit": "3b57922d2d79762e6baedaf9d66d8ba71f822816" },
"lualine.nvim": { "branch": "master", "commit": "c28a7427c3fb29322db136f0564ec58807b26747" }, "lualine.nvim": { "branch": "master", "commit": "c28a7427c3fb29322db136f0564ec58807b26747" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "d88d3564b2ae1d35163ccefda7184d7df104e198" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "d88d3564b2ae1d35163ccefda7184d7df104e198" },
"mason-null-ls.nvim": { "branch": "main", "commit": "a991e7697514f30126fac7c07a11c488c553e94f" }, "mason-null-ls.nvim": { "branch": "main", "commit": "a991e7697514f30126fac7c07a11c488c553e94f" },
"mason.nvim": { "branch": "main", "commit": "f778db1840248b3850613702f036f01d8846c696" }, "mason.nvim": { "branch": "main", "commit": "b54d4e3171cc9735de915dbb97e987fb1f05dad9" },
"material.nvim": { "branch": "main", "commit": "18d5e8af4c4bc77382bda5e5ae2830ab515cf5c6" }, "material.nvim": { "branch": "main", "commit": "18d5e8af4c4bc77382bda5e5ae2830ab515cf5c6" },
"mini.animate": { "branch": "main", "commit": "ca9b687b6da98b48081dc72e27a9657c85cde135" }, "mini.animate": { "branch": "main", "commit": "ca9b687b6da98b48081dc72e27a9657c85cde135" },
"mini.indentscope": { "branch": "main", "commit": "43f6761c9a3e397b7c12b3c72f678bcf61efcfcf" }, "mini.indentscope": { "branch": "main", "commit": "43f6761c9a3e397b7c12b3c72f678bcf61efcfcf" },

View file

@ -85,7 +85,7 @@ vim.g.pcode_lsp_installer = {
} }
-- use for lsp diagnostics virtual text -- use for lsp diagnostics virtual text
vim.g.pcode_lsp_virtualtext = false vim.g.pcode_lsp_virtualtext = true
-- use for lsp ghost text config -- use for lsp ghost text config
vim.g.pcode_lspghost_text = true vim.g.pcode_lspghost_text = true

View file

@ -1,20 +1,20 @@
return { return {
"ErichDonGubler/lsp_lines.nvim", -- "ErichDonGubler/lsp_lines.nvim",
event = "BufRead", -- event = "BufRead",
config = function() -- config = function()
require("lsp_lines").setup() -- require("lsp_lines").setup()
vim.api.nvim_create_autocmd("FileType", { -- vim.api.nvim_create_autocmd("FileType", {
pattern = { "*" }, --ini untuk file yang tidak ingin dibaca -- pattern = { "*" }, --ini untuk file yang tidak ingin dibaca
callback = function() -- callback = function()
local exclude_ft = { -- local exclude_ft = {
"lazy", -- "lazy",
} -- }
if vim.tbl_contains(exclude_ft, vim.o.filetype) then -- if vim.tbl_contains(exclude_ft, vim.o.filetype) then
vim.diagnostic.config({ virtual_lines = false }) -- vim.diagnostic.config({ virtual_lines = false })
else -- else
vim.diagnostic.config({ virtual_lines = true }) -- vim.diagnostic.config({ virtual_lines = true })
end -- end
end, -- end,
}) -- })
end, -- end,
} }